Don't compare strings

Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/3680bff6
Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/3680bff6
Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/3680bff6

Branch: refs/heads/master
Commit: 3680bff6d25a6858162d919849e5c77887a5b7be
Parents: 1090a00
Author: Benedikt Ritter <benerit...@gmail.com>
Authored: Sat Sep 17 16:16:12 2016 +0200
Committer: Tibor17 <tibo...@lycos.com>
Committed: Sun Sep 18 23:18:11 2016 +0200

----------------------------------------------------------------------
 .../org/apache/maven/surefire/its/fixture/HelperAssertions.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/3680bff6/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/HelperAssertions.java
----------------------------------------------------------------------
diff --git 
a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/HelperAssertions.java
 
b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/HelperAssertions.java
index 4502b1b..98edcfb 100644
--- 
a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/HelperAssertions.java
+++ 
b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/HelperAssertions.java
@@ -36,6 +36,7 @@ import static 
org.apache.commons.lang3.SystemUtils.JAVA_SPECIFICATION_VERSION;
 import static org.hamcrest.Matchers.greaterThanOrEqualTo;
 import static org.hamcrest.Matchers.is;
 import static org.junit.Assume.assumeThat;
+import static org.junit.Assume.assumeTrue;
 
 @SuppressWarnings( { "JavaDoc" } )
 public class HelperAssertions
@@ -172,7 +173,7 @@ public class HelperAssertions
 
     public static void assumeJavaVersion( JavaVersion version )
     {
-        assumeThat( "java.specification.version: ",
-                JAVA_SPECIFICATION_VERSION, is( greaterThanOrEqualTo( 
version.toString() ) ) );
+        assumeTrue( "java.specification.version: " + 
JAVA_SPECIFICATION_VERSION,
+                SystemUtils.isJavaVersionAtLeast( version ) );
     }
 }

Reply via email to