This is an automated email from the ASF dual-hosted git repository. tibordigana pushed a commit to branch SUREFIRE-1787 in repository https://gitbox.apache.org/repos/asf/maven-surefire.git
The following commit(s) were added to refs/heads/SUREFIRE-1787 by this push: new 5275e4b j8+ 5275e4b is described below commit 5275e4b8af25c2533d93e0207a39a0347ae72e8e Author: tibordigana <tibordig...@apache.org> AuthorDate: Mon May 11 09:35:38 2020 +0200 j8+ --- .../apache/maven/surefire/its/jiras/Surefire1787JUnit5IT.java | 10 ++++++++++ surefire-its/src/test/resources/junit5-runner/pom.xml | 4 ++-- surefire-its/src/test/resources/junit5-testng/pom.xml | 4 ++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/surefire-its/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1787JUnit5IT.java b/surefire-its/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1787JUnit5IT.java index eab5733..0a493f5 100644 --- a/surefire-its/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1787JUnit5IT.java +++ b/surefire-its/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1787JUnit5IT.java @@ -20,13 +20,23 @@ package org.apache.maven.surefire.its.jiras; */ import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase; +import org.junit.Before; import org.junit.Test; +import static org.apache.maven.surefire.its.fixture.HelperAssertions.assumeJavaVersion; + /** * */ +@SuppressWarnings( "checkstyle:magicnumber" ) public class Surefire1787JUnit5IT extends SurefireJUnit4IntegrationTestCase { + @Before + public void javaVersion() + { + assumeJavaVersion( 1.8d ); + } + @Test public void bothEngines() { diff --git a/surefire-its/src/test/resources/junit5-runner/pom.xml b/surefire-its/src/test/resources/junit5-runner/pom.xml index 64a1bf6..c667e03 100644 --- a/surefire-its/src/test/resources/junit5-runner/pom.xml +++ b/surefire-its/src/test/resources/junit5-runner/pom.xml @@ -29,8 +29,8 @@ <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - <maven.compiler.testSource>1.8</maven.compiler.testSource> - <maven.compiler.testTarget>1.8</maven.compiler.testTarget> + <maven.compiler.source>${java.specification.version}</maven.compiler.source> + <maven.compiler.target>${java.specification.version}</maven.compiler.target> </properties> <dependencies> diff --git a/surefire-its/src/test/resources/junit5-testng/pom.xml b/surefire-its/src/test/resources/junit5-testng/pom.xml index bc61240..c18e464 100644 --- a/surefire-its/src/test/resources/junit5-testng/pom.xml +++ b/surefire-its/src/test/resources/junit5-testng/pom.xml @@ -29,8 +29,8 @@ <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - <maven.compiler.testSource>1.8</maven.compiler.testSource> - <maven.compiler.testTarget>1.8</maven.compiler.testTarget> + <maven.compiler.source>${java.specification.version}</maven.compiler.source> + <maven.compiler.target>${java.specification.version}</maven.compiler.target> </properties> <dependencies>