Updated to fix test and build file

This commit is contained in:
Michael Minella
2018-07-26 11:25:46 -05:00
parent cb03c1c7ed
commit 4b1a78323e
2 changed files with 4 additions and 2 deletions

View File

@@ -555,6 +555,9 @@ project('spring-batch-integration') {
optional "org.springframework:spring-jms:$springVersion"
optional "javax.batch:javax.batch-api:$javaxBatchApiVersion"
// JSR-305 only used for non-required meta-annotations
compileOnly("com.google.code.findbugs:jsr305:3.0.2")
}
}

View File

@@ -20,7 +20,6 @@ import org.springframework.messaging.PollableChannel;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.eq;
@@ -51,7 +50,7 @@ public class MessageChannelPartitionHandlerTests {
//execute
Collection<StepExecution> executions = messageChannelPartitionHandler.handle(stepExecutionSplitter, masterStepExecution);
//verify
assertNull(executions);
assertTrue(executions.isEmpty());
}
@SuppressWarnings({"unchecked", "rawtypes"})