sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1611112 - /sling/whiteboard/bdelacretaz/junit-bridge/src/test/java/org/apache/sling/hc/junitbridge/tests/HealthCheckTestsProviderTest.java
Date Wed, 16 Jul 2014 17:44:06 GMT
Author: bdelacretaz
Date: Wed Jul 16 17:44:06 2014
New Revision: 1611112

URL: http://svn.apache.org/r1611112
Log:
Test invalid test name as well

Modified:
    sling/whiteboard/bdelacretaz/junit-bridge/src/test/java/org/apache/sling/hc/junitbridge/tests/HealthCheckTestsProviderTest.java

Modified: sling/whiteboard/bdelacretaz/junit-bridge/src/test/java/org/apache/sling/hc/junitbridge/tests/HealthCheckTestsProviderTest.java
URL: http://svn.apache.org/viewvc/sling/whiteboard/bdelacretaz/junit-bridge/src/test/java/org/apache/sling/hc/junitbridge/tests/HealthCheckTestsProviderTest.java?rev=1611112&r1=1611111&r2=1611112&view=diff
==============================================================================
--- sling/whiteboard/bdelacretaz/junit-bridge/src/test/java/org/apache/sling/hc/junitbridge/tests/HealthCheckTestsProviderTest.java
(original)
+++ sling/whiteboard/bdelacretaz/junit-bridge/src/test/java/org/apache/sling/hc/junitbridge/tests/HealthCheckTestsProviderTest.java
Wed Jul 16 17:44:06 2014
@@ -190,4 +190,9 @@ public class HealthCheckTestsProviderTes
         assertEquals(2, r.getFailureCount());
         assertEquals(4, r.getRunCount());
     }
+
+    @Test(expected=RuntimeException.class)
+    public void testInvalidTestName() throws ClassNotFoundException {
+        provider.createTestClass("foo");
+    }
 }
\ No newline at end of file



Mime
View raw message