Remove Java 1.4 workarounds from samples tests

This commit is contained in:
dsyer
2008-07-28 11:07:50 +00:00
parent d52603fb46
commit a85643d9a1
2 changed files with 9 additions and 16 deletions

View File

@@ -1,17 +1,22 @@
package org.springframework.batch.item.support;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.util.Collection;
import junit.framework.TestCase;
import org.junit.Before;
import org.junit.Test;
import org.springframework.batch.item.ItemReader;
public class AggregateItemReaderTests extends TestCase {
public class AggregateItemReaderTests {
private ItemReader<Object> input;
private AggregateItemReader provider;
@Before
public void setUp() {
// create mock for input
input = new AbstractItemReader<Object>() {
@@ -39,6 +44,7 @@ public class AggregateItemReaderTests extends TestCase {
provider.setItemReader(input);
}
@Test
public void testNext() throws Exception {
// read object
Object result = provider.read();