You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2019/12/01 03:23:22 UTC

[maven-surefire] branch junit5-runorder updated: Run Order / JUnit5 supported in the Feature Matrix + tests

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

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


The following commit(s) were added to refs/heads/junit5-runorder by this push:
     new 1bd8c4d  Run Order / JUnit5 supported in the Feature Matrix + tests
1bd8c4d is described below

commit 1bd8c4d85e60641d267875f80ef9400056784de3
Author: tibordigana <ti...@apache.org>
AuthorDate: Sun Dec 1 03:22:35 2019 +0100

    Run Order / JUnit5 supported in the Feature Matrix + tests
---
 .../src/test/java/org/apache/maven/surefire/its/RunOrderIT.java     | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/surefire-its/src/test/java/org/apache/maven/surefire/its/RunOrderIT.java b/surefire-its/src/test/java/org/apache/maven/surefire/its/RunOrderIT.java
index 6f7ccee..5d3f2f3 100644
--- a/surefire-its/src/test/java/org/apache/maven/surefire/its/RunOrderIT.java
+++ b/surefire-its/src/test/java/org/apache/maven/surefire/its/RunOrderIT.java
@@ -26,6 +26,8 @@ import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
 import org.apache.maven.surefire.its.fixture.SurefireLauncher;
 import org.junit.Test;
 
+import static org.apache.maven.surefire.its.fixture.HelperAssertions.assumeJavaVersion;
+
 /**
  * Verifies the runOrder setting and its effect
  *
@@ -52,6 +54,7 @@ public class RunOrderIT
     public void testAlphabeticalJUnit5()
         throws Exception
     {
+        assumeJavaVersion( 1.8d );
         OutputValidator validator = executeWithRunOrder( "alphabetical", "junit5" );
         assertTestnamesAppearInSpecificOrder( validator, TESTS_IN_ALPHABETICAL_ORDER );
     }
@@ -68,6 +71,7 @@ public class RunOrderIT
     public void testReverseAlphabeticalJUnit5()
         throws Exception
     {
+        assumeJavaVersion( 1.8d );
         OutputValidator validator = executeWithRunOrder( "reversealphabetical", "junit5" );
         assertTestnamesAppearInSpecificOrder( validator, TESTS_IN_REVERSE_ALPHABETICAL_ORDER );
     }
@@ -93,6 +97,7 @@ public class RunOrderIT
     public void testHourlyJUnit5()
         throws Exception
     {
+        assumeJavaVersion( 1.8d );
         int startHour = Calendar.getInstance().get( Calendar.HOUR_OF_DAY );
         OutputValidator validator = executeWithRunOrder( "hourly", "junit5" );
         int endHour = Calendar.getInstance().get( Calendar.HOUR_OF_DAY );
@@ -122,6 +127,7 @@ public class RunOrderIT
     @Test
     public void testNonExistingRunOrderJUnit5()
     {
+        assumeJavaVersion( 1.8d );
         unpack()
             .activateProfile( "junit5" )
             .forkMode( getForkMode() )