@SuppressWarnings("unchecked")

This commit is contained in:
robokaso
2008-11-24 09:34:16 +00:00
parent 0bcf2e092c
commit d2c1d5b380
4 changed files with 7 additions and 6 deletions

View File

@@ -299,6 +299,7 @@ public class FaultTolerantStepFactoryBeanNonBufferingTests {
private final Collection<String> failures;
@SuppressWarnings("unchecked")
public SkipWriterStub() {
this(StringUtils.commaDelimitedListToSet("4"));
}

View File

@@ -603,6 +603,7 @@ public class FaultTolerantStepFactoryBeanTests {
private final Collection<String> failures;
@SuppressWarnings("unchecked")
public SkipWriterStub() {
this(StringUtils.commaDelimitedListToSet("4"));
}

View File

@@ -18,12 +18,13 @@ public class ChunkProcessorChunkHandlerTests {
public void testVanillaHandleChunk() {
handler.setChunkProcessor(new ChunkProcessor<Object>() {
public int process(Collection<? extends Object> items, int skipCount) throws Exception {
count+=items.size();
count += items.size();
return 0;
}
});
ChunkResponse response = handler.handleChunk(new ChunkRequest<Object>(StringUtils.commaDelimitedListToSet("foo,bar"),
12L, 10));
@SuppressWarnings("unchecked")
ChunkResponse response = handler.handleChunk(new ChunkRequest<Object>(StringUtils
.commaDelimitedListToSet("foo,bar"), 12L, 10));
assertEquals(0, response.getSkipCount());
assertEquals(new Long(12L), response.getJobId());
assertTrue(response.isSuccessful());

View File

@@ -1,8 +1,6 @@
package org.springframework.batch.sample;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.*;
import java.math.BigDecimal;
import java.util.List;