slawekjaranowski commented on code in PR #399:
URL: https://github.com/apache/maven-wrapper/pull/399#discussion_r2765389694


##########
maven-wrapper-plugin/src/test/java/org/apache/maven/plugins/wrapper/WrapperMojoTest.java:
##########
@@ -18,62 +18,89 @@
  */
 package org.apache.maven.plugins.wrapper;
 
-import org.apache.maven.settings.Settings;
+import java.lang.reflect.Field;
+
+import org.eclipse.aether.RepositorySystem;
+import org.eclipse.aether.RepositorySystemSession;
 import org.junit.jupiter.api.Test;
 
 import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.ArgumentMatchers.anyList;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.when;
 
 class WrapperMojoTest {
+    private final RepositorySystem mockRepositorySystem = 
mock(RepositorySystem.class);

Review Comment:
   As we use Mockito, we can add MocitoExtension and with annotations like 
`@Mock`, `@InjectMock` we not need to manually set a fields by reflections



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