Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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(),
Expand Down Expand Up @@ -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(),
Expand Down Expand Up @@ -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(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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(),
Expand Down Expand Up @@ -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(),
Expand Down Expand Up @@ -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(),
Expand Down