diff --git a/openshift-maven-plugin/plugin/pom.xml b/openshift-maven-plugin/plugin/pom.xml
index 063bfaee16..99d63a2f9e 100644
--- a/openshift-maven-plugin/plugin/pom.xml
+++ b/openshift-maven-plugin/plugin/pom.xml
@@ -42,8 +42,14 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter-engine
+ test
+
+
+ org.junit.jupiter
+ junit-jupiter-params
+ test
org.mockito
diff --git a/openshift-maven-plugin/plugin/src/test/java/org/eclipse/jkube/maven/plugin/mojo/OpenShiftGeneratedPluginDescriptorTest.java b/openshift-maven-plugin/plugin/src/test/java/org/eclipse/jkube/maven/plugin/mojo/OpenShiftGeneratedPluginDescriptorTest.java
index 6486e27dd8..9a350d2b3d 100644
--- a/openshift-maven-plugin/plugin/src/test/java/org/eclipse/jkube/maven/plugin/mojo/OpenShiftGeneratedPluginDescriptorTest.java
+++ b/openshift-maven-plugin/plugin/src/test/java/org/eclipse/jkube/maven/plugin/mojo/OpenShiftGeneratedPluginDescriptorTest.java
@@ -13,10 +13,10 @@
*/
package org.eclipse.jkube.maven.plugin.mojo;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.Arguments;
+import org.junit.jupiter.params.provider.MethodSource;
import org.w3c.dom.Document;
import javax.xml.parsers.DocumentBuilder;
@@ -26,50 +26,39 @@
import java.io.File;
import java.io.FileInputStream;
import java.net.URL;
-import java.util.Arrays;
-import java.util.Collection;
+import java.util.stream.Stream;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
-@RunWith(Parameterized.class)
-public class OpenShiftGeneratedPluginDescriptorTest {
+class OpenShiftGeneratedPluginDescriptorTest {
private File pluginDescriptor;
- @Parameterized.Parameter
- public String mojo;
-
- @Parameterized.Parameter(1)
- public String expectedRequiresDependencyResolution;
-
- @Parameterized.Parameter(2)
- public String expectedPhase;
-
- @Before
- public void setUp() {
+ @BeforeEach
+ void setUp() {
URL pluginDescriptorUrl = getClass().getResource("/META-INF/maven/plugin.xml");
assertThat(pluginDescriptorUrl).isNotNull();
pluginDescriptor = new File(pluginDescriptorUrl.getFile());
}
- @Parameterized.Parameters(name = "{index} {0}, should have {1} requiresDependencyResolution and {2} phase")
- public static Collection