From 1b5c5dc1cadce97a537d3d92a10fb22f58119463 Mon Sep 17 00:00:00 2001 From: levBagryansky <28lev11@gmail.com> Date: Wed, 6 Dec 2023 12:41:19 +0300 Subject: [PATCH] #2443: Added message for assertion --- .../src/test/java/org/eolang/maven/VerifyMojoTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eo-maven-plugin/src/test/java/org/eolang/maven/VerifyMojoTest.java b/eo-maven-plugin/src/test/java/org/eolang/maven/VerifyMojoTest.java index 120e67309e..227466f1e3 100644 --- a/eo-maven-plugin/src/test/java/org/eolang/maven/VerifyMojoTest.java +++ b/eo-maven-plugin/src/test/java/org/eolang/maven/VerifyMojoTest.java @@ -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" ); } @@ -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" ); }