diff options
author | Jaikiran Pai <jaikiran@apache.org> | 2022-05-21 19:27:33 +0530 |
---|---|---|
committer | Jaikiran Pai <jaikiran.pai@gmail.com> | 2022-05-21 19:54:52 +0530 |
commit | 2907aeffb15238bebafe990c3d8433a4422739e8 (patch) | |
tree | 6057b0954e9a3da0de2ae683f0402d359c4b4a9c /src | |
parent | 0bc302a60fae2c6f4d29136755a040ec288e97f0 (diff) | |
download | ant-2907aeffb15238bebafe990c3d8433a4422739e8.tar.gz |
upgrade junit5 library dependencies
Diffstat (limited to 'src')
-rw-r--r-- | src/etc/poms/ant-junitlauncher/pom.xml | 6 | ||||
-rw-r--r-- | src/tests/junit/org/apache/tools/ant/taskdefs/optional/junitlauncher/LegacyXmlResultFormatterTest.java | 19 |
2 files changed, 21 insertions, 4 deletions
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 @@ <dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-launcher</artifactId> - <version>1.2.0</version> + <version>1.8.2</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> - <version>5.2.0</version> + <version>5.8.2</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.vintage</groupId> <artifactId>junit-vintage-engine</artifactId> - <version>5.2.0</version> + <version>5.8.2</version> <scope>test</scope> </dependency> </dependencies> 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<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); return testPlan; } |