From 486857723c801adeb9dafd510ad89b64c76638b8 Mon Sep 17 00:00:00 2001 From: Ram Date: Sun, 27 Nov 2022 12:01:38 -0500 Subject: [PATCH] Fixed an error in assert comments --- .../TestSolution1SimpleCompletableFutureOperations.java | 4 ++-- .../futures/TestSolution3CompletableFutureExecutions.java | 8 ++++---- .../TestKata1SimpleCompletableFutureOperations.java | 4 ++-- .../cvg/futures/TestKata3CompletableFutureExecutions.java | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/java-futures/src/solutions/java/none/cvg/futures/TestSolution1SimpleCompletableFutureOperations.java b/java-futures/src/solutions/java/none/cvg/futures/TestSolution1SimpleCompletableFutureOperations.java index 047283e..5d37177 100644 --- a/java-futures/src/solutions/java/none/cvg/futures/TestSolution1SimpleCompletableFutureOperations.java +++ b/java-futures/src/solutions/java/none/cvg/futures/TestSolution1SimpleCompletableFutureOperations.java @@ -49,7 +49,7 @@ public void createCompletedCompletableFuture() { CompletableFuture.completedFuture(successMessage); assertNotNull(completedFuture, - "The completedFuture should be null"); + "The completedFuture should not be null"); assertTrue(completedFuture instanceof CompletableFuture, "The completedFuture should be an instance of CompletableFuture"); @@ -74,7 +74,7 @@ public void failedCompletableFuture() { CompletableFuture.failedFuture(new RuntimeException(exceptionMessage)); assertNotNull(failedFuture, - "The completedFuture should be null"); + "The completedFuture should not be null"); assertTrue(failedFuture instanceof CompletableFuture, "The completedFuture should be an instance of CompletableFuture"); diff --git a/java-futures/src/solutions/java/none/cvg/futures/TestSolution3CompletableFutureExecutions.java b/java-futures/src/solutions/java/none/cvg/futures/TestSolution3CompletableFutureExecutions.java index ce063dc..c85cf42 100644 --- a/java-futures/src/solutions/java/none/cvg/futures/TestSolution3CompletableFutureExecutions.java +++ b/java-futures/src/solutions/java/none/cvg/futures/TestSolution3CompletableFutureExecutions.java @@ -63,7 +63,7 @@ public void runAsync() { voidCompletableFuture.join(); assertNotNull(voidCompletableFuture, - "The completedFuture should be null"); + "The completedFuture should not be null"); assertEquals(2, aList.size(), @@ -99,7 +99,7 @@ public void runAsyncWithExecutor() { voidCompletableFuture.join(); assertNotNull(voidCompletableFuture, - "The completedFuture should be null"); + "The completedFuture should not be null"); assertEquals(2, aList.size(), @@ -132,7 +132,7 @@ public void supplyAsync() throws ExecutionException, InterruptedException { suppliedCompletableFuture.join(); assertNotNull(suppliedCompletableFuture, - "The completedFuture should be null"); + "The completedFuture should not be null"); assertEquals(NINE, suppliedCompletableFuture.get(), @@ -168,7 +168,7 @@ public void supplyAsyncWithExecutor() throws ExecutionException, InterruptedExce suppliedCompletableFuture.join(); assertNotNull(suppliedCompletableFuture, - "The completedFuture should be null"); + "The completedFuture should not be null"); assertEquals(NINE, suppliedCompletableFuture.get(), diff --git a/java-futures/src/test/java/none/cvg/futures/TestKata1SimpleCompletableFutureOperations.java b/java-futures/src/test/java/none/cvg/futures/TestKata1SimpleCompletableFutureOperations.java index 6912e3d..1357eb5 100644 --- a/java-futures/src/test/java/none/cvg/futures/TestKata1SimpleCompletableFutureOperations.java +++ b/java-futures/src/test/java/none/cvg/futures/TestKata1SimpleCompletableFutureOperations.java @@ -48,7 +48,7 @@ public void createCompletedCompletableFuture() { null; assertNotNull(completedFuture, - "The completedFuture should be null"); + "The completedFuture should not be null"); assertTrue(completedFuture instanceof CompletableFuture, "The completedFuture should be an instance of CompletableFuture"); @@ -73,7 +73,7 @@ public void failedCompletableFuture() { null; assertNotNull(failedFuture, - "The completedFuture should be null"); + "The completedFuture should not be null"); assertTrue(failedFuture instanceof CompletableFuture, "The completedFuture should be an instance of CompletableFuture"); diff --git a/java-futures/src/test/java/none/cvg/futures/TestKata3CompletableFutureExecutions.java b/java-futures/src/test/java/none/cvg/futures/TestKata3CompletableFutureExecutions.java index ac25643..7a763fd 100644 --- a/java-futures/src/test/java/none/cvg/futures/TestKata3CompletableFutureExecutions.java +++ b/java-futures/src/test/java/none/cvg/futures/TestKata3CompletableFutureExecutions.java @@ -63,7 +63,7 @@ public void runAsync() { voidCompletableFuture.join(); assertNotNull(voidCompletableFuture, - "The completedFuture should be null"); + "The completedFuture should not be null"); assertEquals(2, aList.size(), @@ -99,7 +99,7 @@ public void runAsyncWithExecutor() { voidCompletableFuture.join(); assertNotNull(voidCompletableFuture, - "The completedFuture should be null"); + "The completedFuture should not be null"); assertEquals(2, aList.size(), @@ -132,7 +132,7 @@ public void supplyAsync() throws ExecutionException, InterruptedException { suppliedCompletableFuture.join(); assertNotNull(suppliedCompletableFuture, - "The completedFuture should be null"); + "The completedFuture should not be null"); assertEquals(NINE, suppliedCompletableFuture.get(), @@ -168,7 +168,7 @@ public void supplyAsyncWithExecutor() throws ExecutionException, InterruptedExce suppliedCompletableFuture.join(); assertNotNull(suppliedCompletableFuture, - "The completedFuture should be null"); + "The completedFuture should not be null"); assertEquals(NINE, suppliedCompletableFuture.get(),