Tidy a test case

This commit is contained in:
dsyer
2010-04-03 11:11:11 +00:00
parent 11cc0250ce
commit 84393d2a96
2 changed files with 6 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ public abstract class AbstractItemReaderTests {
@Test
public void testEmptyInput() throws Exception {
pointToEmptyInput(tested);
Foo x = tested.read();
tested.read();
assertNull(tested.read());
}

View File

@@ -16,10 +16,12 @@
package org.springframework.batch.item;
import junit.framework.TestCase;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class ItemProviderTests extends TestCase {
public class ItemReaderTests {
ItemReader<String> provider = new ItemReader<String>() {
public String read() {
@@ -27,6 +29,7 @@ public class ItemProviderTests extends TestCase {
}
};
@Test
public void testNext() throws Exception {
assertEquals("foo", provider.read());
}