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 2016/09/23 19:06:04 UTC

[6/8] maven-surefire git commit: Don't use static import

Don't use static import


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

Branch: refs/heads/junit5
Commit: 35a06512f382b716b8257111485f345114de8493
Parents: 13a2ae1
Author: Benedikt Ritter <be...@gmail.com>
Authored: Wed Sep 7 21:22:22 2016 +0200
Committer: Tibor17 <ti...@lycos.com>
Committed: Fri Sep 23 21:04:48 2016 +0200

----------------------------------------------------------------------
 .../test/resources/junit5/src/test/java/junit5/JUnit5Test.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/35a06512/surefire-integration-tests/src/test/resources/junit5/src/test/java/junit5/JUnit5Test.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/junit5/src/test/java/junit5/JUnit5Test.java b/surefire-integration-tests/src/test/resources/junit5/src/test/java/junit5/JUnit5Test.java
index 4a7887f..558546d 100644
--- a/surefire-integration-tests/src/test/resources/junit5/src/test/java/junit5/JUnit5Test.java
+++ b/surefire-integration-tests/src/test/resources/junit5/src/test/java/junit5/JUnit5Test.java
@@ -21,10 +21,10 @@ package junit5;
 
 import org.junit.jupiter.api.AfterEach;
 import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.Assertions;
 import org.junit.jupiter.api.BeforeEach;
 import org.junit.jupiter.api.Test;
 
-import static org.junit.jupiter.api.Assertions.assertTrue;
 
 /**
  * A test using the JUnit 5 API, which should be executed by JUnit jupiter enigne
@@ -53,13 +53,13 @@ public class JUnit5Test
     @Test
     public void testSetUp()
     {
-        assertTrue( setUpCalled, "setUp was not called" );
+        Assertions.assertTrue( setUpCalled, "setUp was not called" );
     }
 
     @AfterAll
     public static void oneTimeTearDown()
     {
-        assertTrue( tearDownCalled, "tearDown was not called" );
+        Assertions.assertTrue( tearDownCalled, "tearDown was not called" );
     }
 
 }