use of javax.batch.runtime.JobExecution in project wildfly by wildfly.
the class FlowTestCase method flow.
@Test
public void flow() throws Exception {
final UrlBuilder builder = UrlBuilder.of(url, "start");
builder.addParameter(StartBatchServlet.JOB_XML_PARAMETER, "flow");
builder.addParameter("job-param", "job-param");
final String result = performCall(builder.build());
final JobExecution jobExecution = JobExecutionMarshaller.unmarshall(result);
Assert.assertEquals(BatchStatus.COMPLETED, jobExecution.getBatchStatus());
}
use of javax.batch.runtime.JobExecution in project wildfly by wildfly.
the class BatchTransactionTimeoutTestCase method executeJob.
private String executeJob(@ArquillianResource URL url, int timeout) throws ExecutionException, IOException, TimeoutException {
final UrlBuilder builder = UrlBuilder.of(url, "start");
builder.addParameter(StartBatchServlet.JOB_XML_PARAMETER, "timeout-job");
builder.addParameter("job.timeout", timeout);
final String result = performCall(builder.build(), 20);
final JobExecution jobExecution = JobExecutionMarshaller.unmarshall(result);
return jobExecution.getExitStatus();
}
Aggregations