Skip to content

Commit

Permalink
objectionary#2443: Added message for assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
levBagryansky committed Dec 6, 2023
1 parent e1d2fbe commit 1b5c5dc
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ void failsOptimizationOnError(@TempDir final Path temp) {
"[args] > main",
" (stdout \"Hello!\").print > @"
)
.execute(new FakeMaven.Verify())
.execute(new FakeMaven.Verify()),
"Error in the eo code because of invalid alias"
);
}

Expand All @@ -139,7 +140,8 @@ void failsOnWarning(@TempDir final Path temp) throws Exception {
Assertions.assertThrows(
IllegalStateException.class,
() -> maven.with("failOnWarning", true)
.execute(VerifyMojo.class)
.execute(VerifyMojo.class),
"Program with warning should be failed"
);
}

Expand Down

0 comments on commit 1b5c5dc

Please sign in to comment.