RESOLVED - issue BATCH-406: jobInstance properties lastExecution and executionCount are useless
http://jira.springframework.org/browse/BATCH-406 removed lastExecution property and createExecution method
This commit is contained in:
@@ -24,13 +24,6 @@ import junit.framework.TestCase;
|
||||
public class JobInstanceTests extends TestCase {
|
||||
|
||||
private JobInstance instance = new JobInstance(new Long(11), new JobParameters(), new JobSupport("job"));
|
||||
|
||||
public void testLastExecution(){
|
||||
JobExecution lastExecution = new JobExecution();
|
||||
assertNull(instance.getLastExecution());
|
||||
instance.setLastExecution(lastExecution);
|
||||
assertEquals(lastExecution, instance.getLastExecution());
|
||||
}
|
||||
|
||||
/**
|
||||
* Test method for {@link org.springframework.batch.core.domain.JobInstance#getIdentifier()}.
|
||||
@@ -44,12 +37,6 @@ public class JobInstanceTests extends TestCase {
|
||||
assertEquals("job", instance.getJob().getName());
|
||||
}
|
||||
|
||||
public void testCreateJobExecution(){
|
||||
JobExecution execution = instance.createJobExecution();
|
||||
assertNotNull(execution);
|
||||
assertEquals(execution, instance.getLastExecution());
|
||||
}
|
||||
|
||||
public void testCreateWithNulls(){
|
||||
try {
|
||||
new JobInstance(null, null, null);
|
||||
|
||||
Reference in New Issue
Block a user