diff --git a/lib/libraries.properties b/lib/libraries.properties
index 54370c8fd..f6c03562b 100644
--- a/lib/libraries.properties
+++ b/lib/libraries.properties
@@ -65,11 +65,11 @@ jruby.version=1.6.8
# into the source distribution
junit.version=4.13.1
rhino.version=1.7.11
-junit-platform-launcher.version=1.2.0
+junit-platform-launcher.version=1.8.2
# Only used for internal tests in Ant project
-junit-vintage-engine.version=5.2.0
+junit-vintage-engine.version=5.8.2
# Only used for internal tests in Ant project
-junit-jupiter-engine.version=5.2.0
+junit-jupiter-engine.version=5.8.2
jsch.version=0.1.55
jython.version=2.7.2
# log4j 1.2.15 requires JMS and a few other Sun jars that are not in the m2 repo
diff --git a/src/etc/poms/ant-junitlauncher/pom.xml b/src/etc/poms/ant-junitlauncher/pom.xml
index 817ce9185..b17f7e015 100644
--- a/src/etc/poms/ant-junitlauncher/pom.xml
+++ b/src/etc/poms/ant-junitlauncher/pom.xml
@@ -45,19 +45,19 @@
org.junit.platform
junit-platform-launcher
- 1.2.0
+ 1.8.2
compile
org.junit.jupiter
junit-jupiter-engine
- 5.2.0
+ 5.8.2
test
org.junit.vintage
junit-vintage-engine
- 5.2.0
+ 5.8.2
test
diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junitlauncher/LegacyXmlResultFormatterTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junitlauncher/LegacyXmlResultFormatterTest.java
index 0d58956f0..b2123d175 100644
--- a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junitlauncher/LegacyXmlResultFormatterTest.java
+++ b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junitlauncher/LegacyXmlResultFormatterTest.java
@@ -19,6 +19,7 @@ package org.apache.tools.ant.taskdefs.optional.junitlauncher;
import org.apache.tools.ant.Project;
import org.junit.Test;
+import org.junit.platform.engine.ConfigurationParameters;
import org.junit.platform.launcher.TestPlan;
import java.io.ByteArrayOutputStream;
@@ -70,7 +71,23 @@ public class LegacyXmlResultFormatterTest {
return Optional.empty();
}
});
- final TestPlan testPlan = TestPlan.from(Collections.emptySet());
+ final ConfigurationParameters dummyParams = new ConfigurationParameters() {
+ @Override
+ public Optional get(String key) {
+ return Optional.empty();
+ }
+
+ @Override
+ public Optional getBoolean(String key) {
+ return Optional.empty();
+ }
+
+ @Override
+ public int size() {
+ return 0;
+ }
+ };
+ final TestPlan testPlan = TestPlan.from(Collections.emptySet(), dummyParams);
f.testPlanExecutionStarted(testPlan);
return testPlan;
}