This is an automated email from the ASF dual-hosted git repository. slachiewicz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-script-interpreter.git
commit 825b0beb9a6fc52a1a1de63f9486d818952d03ac Author: Sylwester Lachiewicz <[email protected]> AuthorDate: Mon Nov 16 22:42:38 2026 +0000 Use JUnit 5 assertions and Mockito best practices in tests --- .../GroovyScriptInterpreterTest.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/test/java/org/apache/maven/shared/scriptinterpreter/GroovyScriptInterpreterTest.java b/src/test/java/org/apache/maven/shared/scriptinterpreter/GroovyScriptInterpreterTest.java index 6050e68..6be0960 100644 --- a/src/test/java/org/apache/maven/shared/scriptinterpreter/GroovyScriptInterpreterTest.java +++ b/src/test/java/org/apache/maven/shared/scriptinterpreter/GroovyScriptInterpreterTest.java @@ -187,17 +187,17 @@ class GroovyScriptInterpreterTest { "org/apache/commons/io/FilenameUtils.java", "package org.apache.commons.io;\n\npublic class FilenameUtils {\n}\n"); - assertTrue( + assertEquals( + 0, compiler.run( - null, - null, - null, - "-d", - classesDir.getAbsolutePath(), - binding.getAbsolutePath(), - script.getAbsolutePath(), - filenameUtils.getAbsolutePath()) - == 0, + null, + null, + null, + "-d", + classesDir.getAbsolutePath(), + binding.getAbsolutePath(), + script.getAbsolutePath(), + filenameUtils.getAbsolutePath()), "compilation of the shadowing classes failed"); return classesDir;
