Github user britter commented on a diff in the pull request:

    https://github.com/apache/maven-surefire/pull/120#discussion_r78336717
  
    --- Diff: 
surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/HelperAssertions.java
 ---
    @@ -159,4 +164,10 @@ public static IntegrationTestSuiteResults 
parseReportList( List<ReportTestSuite>
                 throw new RuntimeException( "Couldn't parse XML reports", e );
             }
         }
    +
    +    public static void assumeJavaVersion(JavaVersion version)
    +    {
    +        assumeThat( "java.specification.version: ",
    +                SystemUtils.JAVA_SPECIFICATION_VERSION, is( 
greaterThanOrEqualTo( version.toString() ) ) );
    --- End diff --
    
    Hello @Tibor17 
    
    > Unfortunately org.apache.commons.lang3.JavaVersion is not Comparable
    
    Java enums are comparable by default.
    
    > How would this work with string 1.10? [...]
    
    I'm currently working on Commons Lang Release 3.5 which I expect to be 
ready in two weeks or so. Commons Lang 3.5 will have full Java 9 support with 
regards to version number. Furthermore it will have a better API for comparing 
the current version against a desired version:
    
    ```
    if(JavaVersion.CURRENT.atLeast(JavaVersion.JAVA_1_8)) {
       // do something only possible with Java 8
    }
    ```
    
    I suggest to apply this for now so I can finish the junit-5 IT PR with this 
new check API. I will provide a PR for updating this again to the new API 
introduced in Commons Lang 3.5 when Lang 3.5 is ready. Makes sense?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to