Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed an error in assert comments #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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