RESOLVED - BATCH-651: buffered readers don't handle volatile commit interval

added test and patched the affected readers
This commit is contained in:
robokaso
2008-06-05 08:54:39 +00:00
parent e194b8da09
commit 23b5f47d82
4 changed files with 56 additions and 34 deletions

View File

@@ -64,12 +64,12 @@ public abstract class CommonItemReaderTests extends TestCase {
assertEquals(foo2, tested.read());
// TODO handle shortening the commit interval on the fly
//
// tested.mark();
//
// assertEquals(foo3, tested.read());
//
// tested.reset();
tested.mark();
assertEquals(foo3, tested.read());
tested.reset();
assertEquals(foo3, tested.read());