BATCH-1654: add additional uint test

This commit is contained in:
Dave Syer
2011-02-23 16:22:44 +00:00
parent df86b266d9
commit 7f41b4dab2

View File

@@ -172,6 +172,15 @@ public class JobExecutionTests {
assertEquals(1, execution.getStepExecutions().size());
}
@Test
public void testStepExecutionsWithSameName() throws Exception {
assertEquals(0, execution.getStepExecutions().size());
execution.createStepExecution("step");
assertEquals(1, execution.getStepExecutions().size());
execution.createStepExecution("step");
assertEquals(2, execution.getStepExecutions().size());
}
@Test
public void testSetStepExecutions() throws Exception {
assertEquals(0, execution.getStepExecutions().size());
@@ -179,6 +188,15 @@ public class JobExecutionTests {
assertEquals(1, execution.getStepExecutions().size());
}
@Test
public void testSetStepExecutionsWithIds() throws Exception {
assertEquals(0, execution.getStepExecutions().size());
new StepExecution("step", execution, 1L);
assertEquals(1, execution.getStepExecutions().size());
new StepExecution("step", execution, 2L);
assertEquals(2, execution.getStepExecutions().size());
}
@Test
public void testStop() throws Exception {
StepExecution stepExecution = execution.createStepExecution("step");