elharo commented on code in PR #559:
URL: https://github.com/apache/maven-ear-plugin/pull/559#discussion_r4360117507


##########
src/test/java/org/apache/maven/plugins/ear/EarMojoTest.java:
##########
@@ -54,4 +64,29 @@ void testGetEarFileWithDashPrefixedClassifier() throws 
Exception {
         File result = invokeGetEarFile("myapp", "-sources");
         assertEquals(new File(tempDir, "myapp-sources.ear"), result);
     }
+
+    @Test
+    void testRemoveFromOutdatedResourcesWithDifferentFileSystemProvider() 
throws Exception {
+        EarMojo mojo = new EarMojo(null, null, null, null, null, null);
+        Field workDirectory = 
AbstractEarMojo.class.getDeclaredField("workDirectory");

Review Comment:
   never use reflection



-- 
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]

Reply via email to