@SuppressWarnings("unchecked")
This commit is contained in:
@@ -299,6 +299,7 @@ public class FaultTolerantStepFactoryBeanNonBufferingTests {
|
||||
|
||||
private final Collection<String> failures;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public SkipWriterStub() {
|
||||
this(StringUtils.commaDelimitedListToSet("4"));
|
||||
}
|
||||
|
||||
@@ -603,6 +603,7 @@ public class FaultTolerantStepFactoryBeanTests {
|
||||
|
||||
private final Collection<String> failures;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public SkipWriterStub() {
|
||||
this(StringUtils.commaDelimitedListToSet("4"));
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user