-
Jan 24th, 2008, 10:50 AM
#1
JobFunctionalTests
I am trying to understand the flow in the JobFuncaitonalTests.java.As it is extending AbstractValidatingBatchLauncherTests and that extending AbstractBatchLauncherTests,I am not able to understand which methods it's calling and in which order.If I want to schedule a batch job through windows scheduler then I need to create a .bat file that calls JobFuncationalTests or something similar to that but as it is running through JUnit I didn't know how to call that junit through command prompt.
-
Jan 24th, 2008, 11:25 AM
#2
The unit tests are there for convenience when running the tests. There is a separate class for running for the command line. In Milestone 3 it's call BatchCommandLineJobLauncher. In Milestone 4 it was renamed to CommandLineJobRunner. However, keep in mind that these are very generic, and there are no garuntees they will fulfill all your needs. It's entirely possible that the best option will be to create your own bootstrap class, that works with the JobLauncher interface to launch jobs.
-
Jan 24th, 2008, 12:40 PM
#3
JobFunctionalTests
I am struggling to write a bootstrap class that works with the JobLauncher interface to launch jobs.Can anyone please help me.
Last edited by arunaalluri; Jan 24th, 2008 at 02:17 PM.
-
Jan 24th, 2008, 03:09 PM
#4
Have you looked at the BatchCommandLineJobLauncher? It may not fit your exact requirements, but it should serve as a good example.
-
Jan 25th, 2008, 10:23 AM
#5
JobFuncationalTests
Thanks for the answers.I am able to write my own class to test and it is working.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules