From 158643effb9e8d7fa7c487ed980deecc5235d959 Mon Sep 17 00:00:00 2001 From: levBagryansky <28lev11@gmail.com> Date: Tue, 16 Apr 2024 11:56:53 +0300 Subject: [PATCH] #2896: Inlined variable --- .../src/test/java/org/eolang/maven/VerifyMojoTest.java | 3 +-- 1 file changed, 1 insertion(+), 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 3d4949591c..be094e11b8 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 @@ -84,10 +84,9 @@ void detectsErrorsSuccessfully( .execute(new FakeMaven.Verify()), "Program with noname attributes should have failed or error, but it didn't" ); - final String message = this.getMessage(out, "Errors identified", temp.toString()); MatcherAssert.assertThat( "Errors message should have program name and error line number", - message, + this.getMessage(out, "Errors identified", temp.toString()), Matchers.matchesPattern(this.createRegEx(temp, "Errors identified")) ); }