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 2017/10/09 19:56:21 UTC
maven-surefire git commit: PowerMockJUnit44RunnerDelegateImpl does
not work with Assumptions: assumeFalse
Repository: maven-surefire
Updated Branches:
refs/heads/master 198ef48af -> 30e7c4936
PowerMockJUnit44RunnerDelegateImpl does not work with Assumptions: assumeFalse
Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/30e7c493
Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/30e7c493
Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/30e7c493
Branch: refs/heads/master
Commit: 30e7c4936c5cd479a8f7ca15ba44d9554a20d79f
Parents: 198ef48
Author: Tibor17 <ti...@apache.org>
Authored: Mon Oct 9 21:56:02 2017 +0200
Committer: Tibor17 <ti...@apache.org>
Committed: Mon Oct 9 21:56:02 2017 +0200
----------------------------------------------------------------------
.../org/apache/maven/surefire/booter/SystemUtilsTest.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/30e7c493/surefire-booter/src/test/java/org/apache/maven/surefire/booter/SystemUtilsTest.java
----------------------------------------------------------------------
diff --git a/surefire-booter/src/test/java/org/apache/maven/surefire/booter/SystemUtilsTest.java b/surefire-booter/src/test/java/org/apache/maven/surefire/booter/SystemUtilsTest.java
index 2b8bfed..6a8c095 100644
--- a/surefire-booter/src/test/java/org/apache/maven/surefire/booter/SystemUtilsTest.java
+++ b/surefire-booter/src/test/java/org/apache/maven/surefire/booter/SystemUtilsTest.java
@@ -279,8 +279,11 @@ public class SystemUtilsTest
@Test
public void shouldBeSameJdk9() throws IOException
{
- assumeFalse( JAVA_RECENT.atLeast( JAVA_9 ) );
- testIsJava9AtLeast( new File( System.getProperty( "java.home" ) ).getParentFile() );
+ // PowerMockJUnit44RunnerDelegateImpl does not work with Assumptions: assumeFalse
+ if ( !JAVA_RECENT.atLeast( JAVA_9 ) )
+ {
+ testIsJava9AtLeast( new File( System.getProperty( "java.home" ) ).getParentFile() );
+ }
}
private static void testIsJava9AtLeast( File pathInJdk ) throws IOException