maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krosenv...@apache.org
Subject svn commit: r1054474 - /maven/surefire/trunk/surefire-providers/surefire-junit4/src/test/java/org/apache/maven/surefire/junit4/JUnit4TestCheckerTest.java
Date Sun, 02 Jan 2011 21:36:13 GMT
Author: krosenvold
Date: Sun Jan  2 21:36:13 2011
New Revision: 1054474

URL: http://svn.apache.org/viewvc?rev=1054474&view=rev
Log:
o Added testcase that verifies inner classes are not run

Modified:
    maven/surefire/trunk/surefire-providers/surefire-junit4/src/test/java/org/apache/maven/surefire/junit4/JUnit4TestCheckerTest.java

Modified: maven/surefire/trunk/surefire-providers/surefire-junit4/src/test/java/org/apache/maven/surefire/junit4/JUnit4TestCheckerTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-providers/surefire-junit4/src/test/java/org/apache/maven/surefire/junit4/JUnit4TestCheckerTest.java?rev=1054474&r1=1054473&r2=1054474&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-providers/surefire-junit4/src/test/java/org/apache/maven/surefire/junit4/JUnit4TestCheckerTest.java
(original)
+++ maven/surefire/trunk/surefire-providers/surefire-junit4/src/test/java/org/apache/maven/surefire/junit4/JUnit4TestCheckerTest.java
Sun Jan  2 21:36:13 2011
@@ -106,6 +106,12 @@ public class JUnit4TestCheckerTest
         assertTrue( jUnit4TestChecker.isValidJUnit4Test( CustomSuiteOnlyTest.class ) );
     }
 
+    @Test
+    public void innerClassNotAutomaticallyTc(){
+        assertTrue( jUnit4TestChecker.isValidJUnit4Test( NestedTC.class));
+        assertFalse( jUnit4TestChecker.isValidJUnit4Test( NestedTC.Inner.class));
+    }
+
 
     public static class AlsoValid
         extends TestCase
@@ -219,4 +225,10 @@ public class JUnit4TestCheckerTest
         }
     }
 
+    class NestedTC extends TestCase {
+        public class Inner {
+
+        }
+    }
+
 }



Mime
View raw message