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


##########
src/test/java/org/apache/maven/plugins/checkstyle/exec/CheckstyleExecutorTest.java:
##########
@@ -18,11 +18,19 @@
  */
 package org.apache.maven.plugins.checkstyle.exec;
 
-import org.apache.maven.plugin.testing.AbstractMojoTestCase;
+import org.apache.maven.api.plugin.testing.MojoTest;
+import org.junit.jupiter.api.Test;
 
-public class CheckstyleExecutorTest extends AbstractMojoTestCase {
+import javax.inject.Inject;
+
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+
+@MojoTest
+public class CheckstyleExecutorTest {
+    @Inject
+    private CheckstyleExecutor executor;
+    @Test
     public void testDefaultConfig() throws Exception {
-        CheckstyleExecutor executor = (CheckstyleExecutor) 
lookup(CheckstyleExecutor.class);
-        assertNotNull("project null.", executor);
+        assertNotNull(executor, "project null.");
     }

Review Comment:
   It looks like PlexusTest not MojoTest 



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