diff --git a/pom.xml b/pom.xml index f77cbc17..1c2601bf 100755 --- a/pom.xml +++ b/pom.xml @@ -110,11 +110,11 @@ - 3.1.0.BUILD-SNAPSHOT - 2.3.2.BUILD-SNAPSHOT - 2.3.2.BUILD-SNAPSHOT + 3.1.0-SNAPSHOT + 2.4.0-M1 + 2.4.0-M1 - 3.1.0.BUILD-SNAPSHOT + 3.1.0-SNAPSHOT 1.1 8.0 diff --git a/spring-cloud-task-samples/batch-events/pom.xml b/spring-cloud-task-samples/batch-events/pom.xml index 4807105c..31a67415 100644 --- a/spring-cloud-task-samples/batch-events/pom.xml +++ b/spring-cloud-task-samples/batch-events/pom.xml @@ -13,7 +13,7 @@ org.springframework.boot spring-boot-starter-parent - 2.3.1.BUILD-SNAPSHOT + 2.4.0-SNAPSHOT @@ -37,7 +37,7 @@ org.springframework.cloud spring-cloud-stream-dependencies - 3.1.0.BUILD-SNAPSHOT + 3.1.0-SNAPSHOT pom import @@ -67,7 +67,7 @@ org.springframework.cloud spring-cloud-stream-test-support-internal - 3.1.0.BUILD-SNAPSHOT + 3.1.0-SNAPSHOT test diff --git a/spring-cloud-task-samples/batch-job/pom.xml b/spring-cloud-task-samples/batch-job/pom.xml index c525a088..f4267a3d 100644 --- a/spring-cloud-task-samples/batch-job/pom.xml +++ b/spring-cloud-task-samples/batch-job/pom.xml @@ -13,7 +13,7 @@ org.springframework.boot spring-boot-starter-parent - 2.3.1.BUILD-SNAPSHOT + 2.4.0-SNAPSHOT diff --git a/spring-cloud-task-samples/batch-job/src/test/java/io/spring/BatchJobApplicationTests.java b/spring-cloud-task-samples/batch-job/src/test/java/io/spring/BatchJobApplicationTests.java index 9e1c3f8a..4f1a5fb9 100644 --- a/spring-cloud-task-samples/batch-job/src/test/java/io/spring/BatchJobApplicationTests.java +++ b/spring-cloud-task-samples/batch-job/src/test/java/io/spring/BatchJobApplicationTests.java @@ -27,8 +27,7 @@ import org.springframework.boot.test.system.CapturedOutput; import org.springframework.boot.test.system.OutputCaptureExtension; -import static junit.framework.TestCase.assertTrue; -import static org.junit.Assert.assertEquals; +import static org.assertj.core.api.Assertions.assertThat; /** * Verifies that the Task Application outputs the correct task log entries. @@ -50,24 +49,18 @@ public class BatchJobApplicationTests { SpringApplication.run(BatchJobApplication.class); String output = capturedOutput.toString(); - assertTrue("Unable to find the timestamp: " + output, - output.contains(JOB_RUN_MESSAGE)); - assertTrue("Test results do not show create task message: " + output, - output.contains(CREATE_TASK_MESSAGE)); - assertTrue("Test results do not show success message: " + output, - output.contains(UPDATE_TASK_MESSAGE)); - assertTrue("Test results do not show success message: " + output, - output.contains(EXIT_CODE_MESSAGE)); + assertThat(output).contains(JOB_RUN_MESSAGE); + assertThat(output).contains(CREATE_TASK_MESSAGE); + assertThat(output).contains(UPDATE_TASK_MESSAGE); + assertThat(output).contains(EXIT_CODE_MESSAGE); int i = output.indexOf(JOB_ASSOCIATION_MESSAGE); - assertTrue("Test results do not show the listener message: " + output, - i > 0); + assertThat(i).isGreaterThan(0); int j = output.indexOf(JOB_ASSOCIATION_MESSAGE, i + 1); - assertTrue("Test results do not show the listener message: " + output, - j > i); + assertThat(j).isGreaterThan(i); String taskTitle = "Demo Batch Job Task"; @@ -78,7 +71,7 @@ public class BatchJobApplicationTests { while (matcher.find()) { count++; } - assertEquals("The number of task titles did not match expected: ", 1, count); + assertThat(count).isEqualTo(1); } } diff --git a/spring-cloud-task-samples/jpa-sample/pom.xml b/spring-cloud-task-samples/jpa-sample/pom.xml index 04fd3223..1457ab68 100644 --- a/spring-cloud-task-samples/jpa-sample/pom.xml +++ b/spring-cloud-task-samples/jpa-sample/pom.xml @@ -13,7 +13,7 @@ org.springframework.boot spring-boot-starter-parent - 2.3.1.BUILD-SNAPSHOT + 2.4.0-SNAPSHOT diff --git a/spring-cloud-task-samples/multiple-datasources/pom.xml b/spring-cloud-task-samples/multiple-datasources/pom.xml index 29fc64e5..d8a9de15 100644 --- a/spring-cloud-task-samples/multiple-datasources/pom.xml +++ b/spring-cloud-task-samples/multiple-datasources/pom.xml @@ -14,7 +14,7 @@ org.springframework.boot spring-boot-starter-parent - 2.3.1.BUILD-SNAPSHOT + 2.4.0-SNAPSHOT diff --git a/spring-cloud-task-samples/partitioned-batch-job/pom.xml b/spring-cloud-task-samples/partitioned-batch-job/pom.xml index af550167..857b577a 100644 --- a/spring-cloud-task-samples/partitioned-batch-job/pom.xml +++ b/spring-cloud-task-samples/partitioned-batch-job/pom.xml @@ -12,7 +12,7 @@ org.springframework.boot spring-boot-starter-parent - 2.3.1.BUILD-SNAPSHOT + 2.4.0-SNAPSHOT @@ -52,7 +52,7 @@ org.springframework.cloud spring-cloud-deployer-local - 2.3.2.BUILD-SNAPSHOT + 2.4.0-M1 diff --git a/spring-cloud-task-samples/task-events/pom.xml b/spring-cloud-task-samples/task-events/pom.xml index 1ebc4d26..429b7861 100644 --- a/spring-cloud-task-samples/task-events/pom.xml +++ b/spring-cloud-task-samples/task-events/pom.xml @@ -13,7 +13,7 @@ org.springframework.boot spring-boot-starter-parent - 2.3.1.BUILD-SNAPSHOT + 2.4.0-SNAPSHOT @@ -34,7 +34,7 @@ org.springframework.cloud spring-cloud-stream-dependencies - 3.1.0.BUILD-SNAPSHOT + 3.1.0-SNAPSHOT pom import diff --git a/spring-cloud-task-samples/taskprocessor/pom.xml b/spring-cloud-task-samples/taskprocessor/pom.xml index 95551a73..2733826d 100644 --- a/spring-cloud-task-samples/taskprocessor/pom.xml +++ b/spring-cloud-task-samples/taskprocessor/pom.xml @@ -14,7 +14,7 @@ org.springframework.boot spring-boot-starter-parent - 2.3.1.BUILD-SNAPSHOT + 2.4.0-SNAPSHOT @@ -35,7 +35,7 @@ org.springframework.cloud spring-cloud-stream-dependencies - 3.1.0.BUILD-SNAPSHOT + 3.1.0-SNAPSHOT pom import diff --git a/spring-cloud-task-samples/tasksink/pom.xml b/spring-cloud-task-samples/tasksink/pom.xml index 4b26304b..18fb4c16 100644 --- a/spring-cloud-task-samples/tasksink/pom.xml +++ b/spring-cloud-task-samples/tasksink/pom.xml @@ -15,7 +15,7 @@ org.springframework.boot spring-boot-starter-parent - 2.3.1.BUILD-SNAPSHOT + 2.4.0-SNAPSHOT @@ -36,7 +36,7 @@ org.springframework.cloud spring-cloud-stream-dependencies - 3.1.0.BUILD-SNAPSHOT + 3.1.0-SNAPSHOT pom import diff --git a/spring-cloud-task-samples/timestamp/pom.xml b/spring-cloud-task-samples/timestamp/pom.xml index 44d91ea0..67e8d7b2 100644 --- a/spring-cloud-task-samples/timestamp/pom.xml +++ b/spring-cloud-task-samples/timestamp/pom.xml @@ -13,7 +13,7 @@ org.springframework.boot spring-boot-starter-parent - 2.3.1.BUILD-SNAPSHOT + 2.4.0-SNAPSHOT