RESOLVED - issue BATCH-459: unused StepExecution methods

http://jira.springframework.org/browse/BATCH-459

removed unused methods
This commit is contained in:
robokaso
2008-03-14 15:22:26 +00:00
parent 1f608592fb
commit 0a1c4f49db
2 changed files with 0 additions and 83 deletions

View File

@@ -101,39 +101,6 @@ public class StepExecutionTests extends TestCase {
assertEquals(ExitStatus.FINISHED, execution.getExitStatus());
}
/**
* Test method for
* {@link org.springframework.batch.core.StepExecution#incrementCommitCount()}.
*/
public void testIncrementCommitCount() {
int before = execution.getCommitCount().intValue();
execution.incrementCommitCount();
int after = execution.getCommitCount().intValue();
assertEquals(before + 1, after);
}
/**
* Test method for
* {@link org.springframework.batch.core.StepExecution#incrementItemCount()}.
*/
public void testIncrementLuwCount() {
int before = execution.getItemCount().intValue();
execution.incrementItemCount();
int after = execution.getItemCount().intValue();
assertEquals(before + 1, after);
}
/**
* Test method for
* {@link org.springframework.batch.core.StepExecution#rollback()}.
*/
public void testIncrementRollbackCount() {
int before = execution.getRollbackCount().intValue();
execution.rollback();
int after = execution.getRollbackCount().intValue();
assertEquals(before + 1, after);
}
/**
* Test method for
* {@link org.springframework.batch.core.StepExecution#getCommitCount()}.
@@ -151,15 +118,6 @@ public class StepExecutionTests extends TestCase {
execution.setItemCount(123);
assertEquals(123, execution.getItemCount().intValue());
}
/**
* Test method for
* {@link org.springframework.batch.core.StepExecution#getRollbackCount()}.
*/
public void testGetRollbackCount() {
execution.setRollbackCount(123);
assertEquals(123, execution.getRollbackCount().intValue());
}
public void testGetJobExecution() throws Exception {
assertNotNull(execution.getJobExecution());