elharo commented on code in PR #61:
URL: https://github.com/apache/maven-clean-plugin/pull/61#discussion_r1841899948
##########
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:
I don't know if I'd call it wrong. It's simply an older style of testing
these things.
--
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]