| @@ -65,11 +65,11 @@ jruby.version=1.6.8 | |||||
| # into the source distribution | # into the source distribution | ||||
| junit.version=4.13.1 | junit.version=4.13.1 | ||||
| rhino.version=1.7.11 | 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 | # 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 | # 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 | jsch.version=0.1.55 | ||||
| jython.version=2.7.2 | jython.version=2.7.2 | ||||
| # log4j 1.2.15 requires JMS and a few other Sun jars that are not in the m2 repo | # log4j 1.2.15 requires JMS and a few other Sun jars that are not in the m2 repo | ||||
| @@ -45,19 +45,19 @@ | |||||
| <dependency> | <dependency> | ||||
| <groupId>org.junit.platform</groupId> | <groupId>org.junit.platform</groupId> | ||||
| <artifactId>junit-platform-launcher</artifactId> | <artifactId>junit-platform-launcher</artifactId> | ||||
| <version>1.2.0</version> | |||||
| <version>1.8.2</version> | |||||
| <scope>compile</scope> | <scope>compile</scope> | ||||
| </dependency> | </dependency> | ||||
| <dependency> | <dependency> | ||||
| <groupId>org.junit.jupiter</groupId> | <groupId>org.junit.jupiter</groupId> | ||||
| <artifactId>junit-jupiter-engine</artifactId> | <artifactId>junit-jupiter-engine</artifactId> | ||||
| <version>5.2.0</version> | |||||
| <version>5.8.2</version> | |||||
| <scope>test</scope> | <scope>test</scope> | ||||
| </dependency> | </dependency> | ||||
| <dependency> | <dependency> | ||||
| <groupId>org.junit.vintage</groupId> | <groupId>org.junit.vintage</groupId> | ||||
| <artifactId>junit-vintage-engine</artifactId> | <artifactId>junit-vintage-engine</artifactId> | ||||
| <version>5.2.0</version> | |||||
| <version>5.8.2</version> | |||||
| <scope>test</scope> | <scope>test</scope> | ||||
| </dependency> | </dependency> | ||||
| </dependencies> | </dependencies> | ||||
| @@ -19,6 +19,7 @@ package org.apache.tools.ant.taskdefs.optional.junitlauncher; | |||||
| import org.apache.tools.ant.Project; | import org.apache.tools.ant.Project; | ||||
| import org.junit.Test; | import org.junit.Test; | ||||
| import org.junit.platform.engine.ConfigurationParameters; | |||||
| import org.junit.platform.launcher.TestPlan; | import org.junit.platform.launcher.TestPlan; | ||||
| import java.io.ByteArrayOutputStream; | import java.io.ByteArrayOutputStream; | ||||
| @@ -70,7 +71,23 @@ public class LegacyXmlResultFormatterTest { | |||||
| return Optional.empty(); | return Optional.empty(); | ||||
| } | } | ||||
| }); | }); | ||||
| final TestPlan testPlan = TestPlan.from(Collections.emptySet()); | |||||
| final ConfigurationParameters dummyParams = new ConfigurationParameters() { | |||||
| @Override | |||||
| public Optional<String> get(String key) { | |||||
| return Optional.empty(); | |||||
| } | |||||
| @Override | |||||
| public Optional<Boolean> getBoolean(String key) { | |||||
| return Optional.empty(); | |||||
| } | |||||
| @Override | |||||
| public int size() { | |||||
| return 0; | |||||
| } | |||||
| }; | |||||
| final TestPlan testPlan = TestPlan.from(Collections.emptySet(), dummyParams); | |||||
| f.testPlanExecutionStarted(testPlan); | f.testPlanExecutionStarted(testPlan); | ||||
| return testPlan; | return testPlan; | ||||
| } | } | ||||