slawekjaranowski commented on code in PR #645:
URL: 
https://github.com/apache/maven-checkstyle-plugin/pull/645#discussion_r2500987034


##########
src/test/java/org/apache/maven/plugins/checkstyle/CheckstyleViolationCheckMojoTest.java:
##########
@@ -54,17 +66,34 @@ public void testDefaultConfig() throws Exception {
         }
     }
 
-    public void testInvalidFormatWithSkipExec() throws Exception {
-        File pluginXmlFile = new File(getBasedir(), 
"src/test/resources/plugin-configs/check-plugin-config.xml");
-
-        Mojo mojo = lookupMojo("check", pluginXmlFile);
-
-        assertNotNull("Mojo not found.", mojo);
+    @Provides
+    public MavenProjectStub projectStub() {
+        return new MavenProjectStub() {
+            public File getFile() {
+                return new File(getBasedir(), "target/classes");
+            }
 

Review Comment:
   MojoExtension provide a mock for MavenProject to check if we need create stub
   
   Can be as cleanup in next PR



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