OPEN - issue BATCH-90: StepExecution and StepExecutionContext are parallel domains, and StepExecution is by comparison anaemic
http://opensource.atlassian.com/projects/spring/browse/BATCH-90 Remove setter for job id in JobExecution
This commit is contained in:
@@ -78,10 +78,6 @@ public class JobExecution extends Entity {
|
||||
return jobId;
|
||||
}
|
||||
|
||||
public void setJobId(Long jobId) {
|
||||
this.jobId = jobId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param exitCode
|
||||
*/
|
||||
|
||||
@@ -66,7 +66,7 @@ public class JobExecutionTests extends TestCase {
|
||||
*/
|
||||
public void testGetJobId() {
|
||||
assertEquals(11, execution.getJobId().longValue());
|
||||
execution.setJobId(new Long(23));
|
||||
execution = new JobExecution(new Long(23));
|
||||
assertEquals(23, execution.getJobId().longValue());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user