You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by so...@apache.org on 2018/09/28 09:38:30 UTC

[maven-surefire] branch 1564 updated: Get current Surefire version from system properties

This is an automated email from the ASF dual-hosted git repository.

sor pushed a commit to branch 1564
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git


The following commit(s) were added to refs/heads/1564 by this push:
     new 5b5d1ce  Get current Surefire version from system properties
5b5d1ce is described below

commit 5b5d1ce2dc97ad69f2baf57e93ce95e32536f128
Author: Christian Stein <so...@gmail.com>
AuthorDate: Fri Sep 28 11:38:08 2018 +0200

    Get current Surefire version from system properties
---
 .../test/java/org/apache/maven/surefire/its/JUnitPlatformIT.java  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/surefire-its/src/test/java/org/apache/maven/surefire/its/JUnitPlatformIT.java b/surefire-its/src/test/java/org/apache/maven/surefire/its/JUnitPlatformIT.java
index 0ca726c..9bfe6bc 100644
--- a/surefire-its/src/test/java/org/apache/maven/surefire/its/JUnitPlatformIT.java
+++ b/surefire-its/src/test/java/org/apache/maven/surefire/its/JUnitPlatformIT.java
@@ -68,7 +68,7 @@ public class JUnitPlatformIT
     public void testJUnitPlatform_1_0_0() throws VerificationException
     {
         Map<String, String> versions = new HashMap<String, String>();
-        versions.put("surefire", "2.22.1-SNAPSHOT"); // TODO Extract current from build!
+        versions.put("surefire", System.getProperty("surefire.version"));
         versions.put("platform", "1.0.0");
         versions.put("jupiter", "5.0.0");
         versions.put("opentest", "1.0.0");
@@ -81,7 +81,7 @@ public class JUnitPlatformIT
     public void testJUnitPlatform_1_1_1() throws VerificationException
     {
         Map<String, String> versions = new HashMap<String, String>();
-        versions.put("surefire", "2.22.1-SNAPSHOT"); // TODO Extract current from build!
+        versions.put("surefire", System.getProperty("surefire.version"));
         versions.put("platform", "1.1.1");
         versions.put("jupiter", "5.1.1");
         versions.put("opentest", "1.0.0");
@@ -94,7 +94,7 @@ public class JUnitPlatformIT
     public void testJUnitPlatform_1_2_0() throws VerificationException
     {
         Map<String, String> versions = new HashMap<String, String>();
-        versions.put("surefire", "2.22.1-SNAPSHOT"); // TODO Extract current from build!
+        versions.put("surefire", System.getProperty("surefire.version"));
         versions.put("platform", "1.2.0");
         versions.put("jupiter", "5.2.0");
         versions.put("opentest", "1.1.0");
@@ -107,7 +107,7 @@ public class JUnitPlatformIT
     public void testJUnitPlatform_1_3_1() throws VerificationException
     {
         Map<String, String> versions = new HashMap<String, String>();
-        versions.put("surefire", "2.22.1-SNAPSHOT"); // TODO Extract current from build!
+        versions.put("surefire", System.getProperty("surefire.version"));
         versions.put("platform", "1.3.1");
         versions.put("jupiter", "5.3.1");
         versions.put("opentest", "1.1.1");