BATCH-1396: added assertions to integration test

This commit is contained in:
Dave Syer
2011-03-21 09:53:29 +00:00
parent 58ad6bd542
commit c74e28165d
2 changed files with 10 additions and 0 deletions

View File

@@ -73,6 +73,11 @@ public class FootballJobIntegrationTests {
assertEquals(BatchStatus.COMPLETED, execution.getStatus());
for (StepExecution stepExecution : execution.getStepExecutions()) {
logger.info("Processed: " + stepExecution);
if (stepExecution.getStepName().equals("playerload")) {
// The effect of the retries
assertEquals(new Double(Math.ceil(stepExecution.getReadCount() / 10. + 1)).intValue(),
stepExecution.getCommitCount());
}
}
}

View File

@@ -94,6 +94,11 @@ public class FootballJobSkipIntegrationTests {
assertEquals(BatchStatus.COMPLETED, execution.getStatus());
for (StepExecution stepExecution : execution.getStepExecutions()) {
logger.info("Processed: " + stepExecution);
if (stepExecution.getStepName().equals("playerload")) {
// The effect of the retries
assertEquals(stepExecution.getReadCount()*2, stepExecution.getRollbackCount());
assertEquals(stepExecution.getReadCount(), stepExecution.getWriteSkipCount());
}
}
}