gnodet commented on code in PR #61:
URL: https://github.com/apache/maven-clean-plugin/pull/61#discussion_r1841637902
##########
src/test/java/org/apache/maven/plugins/clean/CleanMojoTest.java:
##########
@@ -175,7 +174,7 @@ public void testCleanLockedFile(CleanMojo mojo) throws
Exception {
mojo.execute();
fail("Should fail to delete a file that is locked");
} catch (MojoException expected) {
- assertTrue(true);
+ assertNotNull(expected.getMessage());
Review Comment:
This is wrong too. The test should use assertThrows instead.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]