StepExecution#incrementTaskCount -> incrementItemCount
This commit is contained in:
@@ -101,9 +101,9 @@ public class StepExecution extends Entity {
|
||||
}
|
||||
|
||||
/**
|
||||
* Increments the number of tasks in this execution
|
||||
* Increments the number of items in this execution
|
||||
*/
|
||||
public void incrementTaskCount() {
|
||||
public void incrementItemCount() {
|
||||
itemCount++;
|
||||
}
|
||||
|
||||
|
||||
@@ -114,11 +114,11 @@ public class StepExecutionTests extends TestCase {
|
||||
|
||||
/**
|
||||
* Test method for
|
||||
* {@link org.springframework.batch.core.StepExecution#incrementTaskCount()}.
|
||||
* {@link org.springframework.batch.core.StepExecution#incrementItemCount()}.
|
||||
*/
|
||||
public void testIncrementLuwCount() {
|
||||
int before = execution.getItemCount().intValue();
|
||||
execution.incrementTaskCount();
|
||||
execution.incrementItemCount();
|
||||
int after = execution.getItemCount().intValue();
|
||||
assertEquals(before + 1, after);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user