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:02 UTC

[4/8] maven-surefire git commit: Make sure tearDown is called

Make sure tearDown is called


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

Branch: refs/heads/junit5
Commit: 13a2ae14ed18ba2d3207051dec0c7a8cafa231dd
Parents: fd1e743
Author: Benedikt Ritter <be...@gmail.com>
Authored: Wed Sep 7 21:19:21 2016 +0200
Committer: Tibor17 <ti...@lycos.com>
Committed: Fri Sep 23 21:04:47 2016 +0200

----------------------------------------------------------------------
 .../src/test/resources/junit5/src/test/java/junit5/JUnit4Test.java | 2 +-
 .../src/test/resources/junit5/src/test/java/junit5/JUnit5Test.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/13a2ae14/surefire-integration-tests/src/test/resources/junit5/src/test/java/junit5/JUnit4Test.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/junit5/src/test/java/junit5/JUnit4Test.java b/surefire-integration-tests/src/test/resources/junit5/src/test/java/junit5/JUnit4Test.java
index 2777c1d..0a94b1a 100644
--- a/surefire-integration-tests/src/test/resources/junit5/src/test/java/junit5/JUnit4Test.java
+++ b/surefire-integration-tests/src/test/resources/junit5/src/test/java/junit5/JUnit4Test.java
@@ -58,7 +58,7 @@ public class JUnit4Test
     @AfterClass
     public static void oneTimeTearDown()
     {
-
+        Assert.assertTrue( "tearDown was not called", tearDownCalled );
     }
 
 }

http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/13a2ae14/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 8c805f2..4a7887f 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
@@ -59,7 +59,7 @@ public class JUnit5Test
     @AfterAll
     public static void oneTimeTearDown()
     {
-
+        assertTrue( tearDownCalled, "tearDown was not called" );
     }
 
 }