diff --git a/org.eclipse.m2e.jdt.tests/projects/surefireFailsafeToTestLaunchSettings/argumentsAreSet/failsafeArgsSet.xml b/org.eclipse.m2e.jdt.tests/projects/surefireFailsafeToTestLaunchSettings/argumentsAreSet/failsafeArgsSet.xml
deleted file mode 100644
index 3c00b5cfd1..0000000000
--- a/org.eclipse.m2e.jdt.tests/projects/surefireFailsafeToTestLaunchSettings/argumentsAreSet/failsafeArgsSet.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
- --argLineItem=failsafeArgLineValue
-
-
- failsafeProp1Value
-
-
- failsafeEnvironmentVariables1Value
-
-
\ No newline at end of file
diff --git a/org.eclipse.m2e.jdt.tests/projects/surefireFailsafeToTestLaunchSettings/argumentsAreSet/surefireArgsSet.xml b/org.eclipse.m2e.jdt.tests/projects/surefireFailsafeToTestLaunchSettings/argumentsAreSet/surefireArgsSet.xml
deleted file mode 100644
index 303a1ae7b9..0000000000
--- a/org.eclipse.m2e.jdt.tests/projects/surefireFailsafeToTestLaunchSettings/argumentsAreSet/surefireArgsSet.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
- --argLineItem=surefireArgLineValue
-
-
- surefireProp1Value
-
-
- surefireEnvironmentVariables1Value
-
-
\ No newline at end of file
diff --git a/org.eclipse.m2e.jdt.tests/projects/surefireFailsafeToTestLaunchSettings/prerequisitesAreLoaded/pom.xml b/org.eclipse.m2e.jdt.tests/projects/surefireFailsafeToTestLaunchSettings/prerequisitesAreLoaded/pom.xml
deleted file mode 100644
index 6a094cd9a7..0000000000
--- a/org.eclipse.m2e.jdt.tests/projects/surefireFailsafeToTestLaunchSettings/prerequisitesAreLoaded/pom.xml
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
- 4.0.0
- foo.bar
- demo-test-config
- 0.0.1-SNAPSHOT
-
-
-
- org.codehaus.mojo:properties-maven-plugin:read-project-properties
-
-
-
-
-
- org.codehaus.mojo
- properties-maven-plugin
- 1.2.1
-
-
- props_to_load.properties
-
-
-
-
- read-project-properties
- initialize
-
- read-project-properties
-
-
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
-
-
- --argLineItem=${property.to.load}
-
-
-
-
-
-
-
diff --git a/org.eclipse.m2e.jdt.tests/projects/surefireFailsafeToTestLaunchSettings/prerequisitesAreLoaded/props_to_load.properties b/org.eclipse.m2e.jdt.tests/projects/surefireFailsafeToTestLaunchSettings/prerequisitesAreLoaded/props_to_load.properties
deleted file mode 100644
index f12a2d13a4..0000000000
--- a/org.eclipse.m2e.jdt.tests/projects/surefireFailsafeToTestLaunchSettings/prerequisitesAreLoaded/props_to_load.properties
+++ /dev/null
@@ -1 +0,0 @@
-property.to.load=somevalue
\ No newline at end of file
diff --git a/org.eclipse.m2e.jdt.tests/src/org/eclipse/m2e/jdt/tests/UnitTestLaunchConfigConfigurationTest.java b/org.eclipse.m2e.jdt.tests/src/org/eclipse/m2e/jdt/tests/UnitTestLaunchConfigConfigurationTest.java
index ddee3485e1..e3f24fcc82 100644
--- a/org.eclipse.m2e.jdt.tests/src/org/eclipse/m2e/jdt/tests/UnitTestLaunchConfigConfigurationTest.java
+++ b/org.eclipse.m2e.jdt.tests/src/org/eclipse/m2e/jdt/tests/UnitTestLaunchConfigConfigurationTest.java
@@ -18,8 +18,8 @@
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
-import java.util.Arrays;
import java.util.Collection;
+import java.util.List;
import java.util.Map;
import org.eclipse.core.resources.IFile;
@@ -41,6 +41,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
+import org.junit.runners.Parameterized.Parameter;
import org.junit.runners.Parameterized.Parameters;
@SuppressWarnings("restriction")
@@ -50,47 +51,63 @@ public class UnitTestLaunchConfigConfigurationTest extends AbstractMavenProjectT
private static final String REPLACED_SUREFIRE_POM_STRING = "";
private static final String REPLACED_FAILSAFE_POM_STRING = "";
private static final String ROOT_PATH = "/projects/surefireFailsafeToTestLaunchSettings";
-
- private String testType;
- private ILaunchManager launchManager;
-
- public UnitTestLaunchConfigConfigurationTest(String testType) {
- super();
- this.testType = testType;
- }
+ private static ILaunchManager LAUNCH_MANAGER = DebugPlugin.getDefault().getLaunchManager();
+
+ private static final String SUREFIRE_ARGS_SET = """
+
+
+ --argLineItem=surefireArgLineValue
+
+
+ surefireProp1Value
+
+
+ surefireEnvironmentVariables1Value
+
+
+ """;
+ private static final String FAILSAFE_ARGS_SET = """
+
+
+ --argLineItem=failsafeArgLineValue
+
+
+ failsafeProp1Value
+
+
+ failsafeEnvironmentVariables1Value
+
+
+ """;
// Define the parameters to be used in the test
@Parameters
- public static Collection