BATCH-2122: Updated so that offset would be correctly handled at chunk borders

This commit is contained in:
Michael Minella
2013-11-18 16:26:39 -06:00
parent dba6590dc2
commit e7319c66f8
3 changed files with 13 additions and 11 deletions

View File

@@ -55,7 +55,7 @@ public class ChunkMonitorTests {
monitor.registerItemStream(new ItemStreamSupport() {
@Override
public void close() {
super.close();
super.close();
closed = true;
}
});
@@ -98,6 +98,7 @@ public class ChunkMonitorTests {
executionContext.putInt(ChunkMonitor.class.getName() + ".OFFSET", 2);
monitor.open(executionContext);
assertEquals(2, count);
assertEquals(0, monitor.getOffset());
}
@Test