Browse Source

upgrade junit5 library dependencies

master
Jaikiran Pai Jaikiran Pai 3 years ago
parent
commit
2907aeffb1
3 changed files with 24 additions and 7 deletions
  1. +3
    -3
      lib/libraries.properties
  2. +3
    -3
      src/etc/poms/ant-junitlauncher/pom.xml
  3. +18
    -1
      src/tests/junit/org/apache/tools/ant/taskdefs/optional/junitlauncher/LegacyXmlResultFormatterTest.java

+ 3
- 3
lib/libraries.properties View File

@@ -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


+ 3
- 3
src/etc/poms/ant-junitlauncher/pom.xml View File

@@ -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>


+ 18
- 1
src/tests/junit/org/apache/tools/ant/taskdefs/optional/junitlauncher/LegacyXmlResultFormatterTest.java View File

@@ -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;
}


Loading…
Cancel
Save