RESOLVED - issue BATCH-789: Remove mark/reset from ItemReader

Remove AbstractItemReader.  All done (with remaining issues moved to BATCH-220).
This commit is contained in:
dsyer
2008-08-21 12:11:22 +00:00
parent 300e726909
commit fcf96a954f
16 changed files with 43 additions and 75 deletions

View File

@@ -16,14 +16,12 @@
package org.springframework.batch.item;
import org.springframework.batch.item.support.AbstractItemReader;
import junit.framework.TestCase;
public class ItemProviderTests extends TestCase {
ItemReader<String> provider = new AbstractItemReader<String>() {
ItemReader<String> provider = new ItemReader<String>() {
public String read() {
return "foo";
}

View File

@@ -19,7 +19,7 @@ public class AggregateItemReaderTests {
@Before
public void setUp() {
// create mock for input
input = new AbstractItemReader<AggregateItem<String>>() {
input = new ItemReader<AggregateItem<String>>() {
private int count = 0;

View File

@@ -15,11 +15,13 @@
*/
package org.springframework.batch.item.validator;
import static org.easymock.EasyMock.createMock;
import static org.easymock.EasyMock.expectLastCall;
import static org.easymock.EasyMock.replay;
import static org.easymock.EasyMock.verify;
import junit.framework.TestCase;
import static org.easymock.EasyMock.*;
import org.springframework.batch.item.ItemReader;
import org.springframework.batch.item.support.AbstractItemReader;
/**
* @author Lucas Ward
@@ -98,7 +100,7 @@ public class ValidatingItemReaderTests extends TestCase {
verify(validator);
}
private static class MockItemReader extends AbstractItemReader<Object> {
private static class MockItemReader implements ItemReader<Object> {
Object value;

View File

@@ -17,7 +17,6 @@
package org.springframework.batch.repeat.support;
import org.springframework.batch.item.ItemReader;
import org.springframework.batch.item.support.AbstractItemReader;
import org.springframework.batch.repeat.ExitStatus;
import org.springframework.batch.repeat.RepeatCallback;
import org.springframework.batch.repeat.RepeatContext;
@@ -147,7 +146,7 @@ public class ChunkedRepeatTests extends AbstractTradeBatchTests {
while (!chunker.ready()) {
ItemReader<Trade> truncated = new AbstractItemReader<Trade>() {
ItemReader<Trade> truncated = new ItemReader<Trade>() {
int count = 0;
public Trade read() throws Exception {