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-clean-plugin.git
commit 376cde51997e26aba542ca36eefe4e37b4e7c2a1 Author: Sylwester Lachiewicz <[email protected]> AuthorDate: Tue Nov 17 02:26:15 2026 +0000 Use JUnit 5 assertions and Mockito best practices in tests --- src/test/java/org/apache/maven/plugins/clean/CleanMojoTest.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/test/java/org/apache/maven/plugins/clean/CleanMojoTest.java b/src/test/java/org/apache/maven/plugins/clean/CleanMojoTest.java index 704664d..0e13f58 100644 --- a/src/test/java/org/apache/maven/plugins/clean/CleanMojoTest.java +++ b/src/test/java/org/apache/maven/plugins/clean/CleanMojoTest.java @@ -177,7 +177,6 @@ class CleanMojoTest { mojo.execute(); fail("Should fail to delete a file that is locked"); } catch (MojoExecutionException expected) { - assertTrue(true); } } @@ -201,7 +200,6 @@ class CleanMojoTest { try (FileChannel channel = new RandomAccessFile(f, "rw").getChannel(); FileLock ignored = channel.lock()) { mojo.execute(); - assertTrue(true); } catch (MojoExecutionException expected) { fail("Should display a warning when deleting a file that is locked"); }
