You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ag...@apache.org on 2013/05/07 20:20:04 UTC

git commit: o Ignore cucumber test in pre-JDK 1.6 builds

Updated Branches:
  refs/heads/master ed24b09eb -> c9aa4211d


o Ignore cucumber test in pre-JDK 1.6 builds


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

Branch: refs/heads/master
Commit: c9aa4211db9c851695d59c216318077df078c3f3
Parents: ed24b09
Author: Andreas Gudian <ag...@apache.org>
Authored: Tue May 7 20:19:43 2013 +0200
Committer: Andreas Gudian <ag...@apache.org>
Committed: Tue May 7 20:19:43 2013 +0200

----------------------------------------------------------------------
 .../maven/surefire/its/Junit47WithCucumberIT.java  |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/c9aa4211/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/Junit47WithCucumberIT.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/Junit47WithCucumberIT.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/Junit47WithCucumberIT.java
index b58ee46..08f6f6c 100644
--- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/Junit47WithCucumberIT.java
+++ b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/Junit47WithCucumberIT.java
@@ -20,6 +20,8 @@ package org.apache.maven.surefire.its;
  */
 
 import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
+import org.junit.Assume;
+import org.junit.Before;
 import org.junit.Test;
 
 /**
@@ -34,6 +36,12 @@ public class Junit47WithCucumberIT
     extends SurefireJUnit4IntegrationTestCase
 {
 
+    @Before
+    public void assumeJdk16()
+    {
+        Assume.assumeTrue( System.getProperty( "java.version" ).compareTo( "1.6" ) > 0 );
+    }
+
     @Test
     public void testWithoutParallel()
     {