raupachz commented on code in PR #183: URL: https://github.com/apache/maven-enforcer/pull/183#discussion_r963770596
########## enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/TestRequireFilesDontExist.java: ########## @@ -136,6 +136,34 @@ public void testFileDoesNotExist() rule.execute( EnforcerTestUtils.getHelper() ); } + @Test + public void testFileDoesNotExistSatisfyAny() + throws IOException + { + File f = File.createTempFile( "junit", null, temporaryFolder ); + f.delete(); Review Comment: True. I just went with the observed pattern in the test case. To be honest I find this approach quite elegant. This way I really I really know the file does not exist. -- 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: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org