From 4b1a78323e1a779b374c1ac426f49dff51990983 Mon Sep 17 00:00:00 2001 From: Michael Minella Date: Thu, 26 Jul 2018 11:25:46 -0500 Subject: [PATCH] Updated to fix test and build file --- build.gradle | 3 +++ .../partition/MessageChannelPartitionHandlerTests.java | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index aff25aae6..6dfc22257 100644 --- a/build.gradle +++ b/build.gradle @@ -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") } } diff --git a/spring-batch-integration/src/test/java/org/springframework/batch/integration/partition/MessageChannelPartitionHandlerTests.java b/spring-batch-integration/src/test/java/org/springframework/batch/integration/partition/MessageChannelPartitionHandlerTests.java index 59ed868ea..fd9170412 100644 --- a/spring-batch-integration/src/test/java/org/springframework/batch/integration/partition/MessageChannelPartitionHandlerTests.java +++ b/spring-batch-integration/src/test/java/org/springframework/batch/integration/partition/MessageChannelPartitionHandlerTests.java @@ -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 executions = messageChannelPartitionHandler.handle(stepExecutionSplitter, masterStepExecution); //verify - assertNull(executions); + assertTrue(executions.isEmpty()); } @SuppressWarnings({"unchecked", "rawtypes"})