|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.spring.batch.BatchTestImpl
public class BatchTestImpl
Implements the BatchTest by a custom soap ui implementation. This expects a project location (soap ui project xml file) , an
suite name and the name of the testCase. All should be exact.
| Constructor Summary | |
|---|---|
BatchTestImpl(org.springframework.context.ApplicationContext contextFile,
String jobName,
int exitCode)
|
|
BatchTestImpl(org.springframework.context.ApplicationContext context,
String jobName,
String parameter,
BatchOption option,
int exitCode)
Constructor to be able to test with a parameter and an option (-restart, -stop, etc...), allowing for testing the restart of a job for instance. |
|
BatchTestImpl(org.springframework.context.ApplicationContext context,
String jobName,
String parameter,
int exitCode)
Constructor to be able to test with a parameter, allowing for testing one job several time without clearing database over and over again. |
|
| Method Summary | |
|---|---|
void |
launchJob()
This method launches the Spring Batch job. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BatchTestImpl(org.springframework.context.ApplicationContext contextFile,
String jobName,
int exitCode)
throws org.unitils.core.UnitilsException
contextFile - jobName - exitCode -
org.unitils.core.UnitilsException
public BatchTestImpl(org.springframework.context.ApplicationContext context,
String jobName,
String parameter,
int exitCode)
throws org.unitils.core.UnitilsException
context - place of the job xml Spring application contextjobName - the name the job is known for in this contextparameter - the additional parameter (added to the job as param=parameter)exitCode - the exit code to check
org.unitils.core.UnitilsException - when something unexpected happens
public BatchTestImpl(org.springframework.context.ApplicationContext context,
String jobName,
String parameter,
BatchOption option,
int exitCode)
throws org.unitils.core.UnitilsException
context - jobName - the name the job is known for in this contextparameter - the additional parameter (added to the job as param=parameter)exitCode - the exit code to checkoption - the Batch option to add to the execution
org.unitils.core.UnitilsException - when something unexpected happens| Method Detail |
|---|
public void launchJob()
throws Exception
BatchTest
launchJob in interface BatchTestException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||