This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.hc.junit.bridge-1.0.2
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-hc-junit-bridge.git

commit 2881630bc2eb950562297f284e87a0931b6eb775
Author: Bertrand Delacretaz <[email protected]>
AuthorDate: Wed Jul 16 17:44:06 2014 +0000

    Test invalid test name as well
    
    git-svn-id: 
https://svn.apache.org/repos/asf/sling/whiteboard/bdelacretaz/junit-bridge@1611112
 13f79535-47bb-0310-9956-ffa450edef68
---
 .../sling/hc/junitbridge/tests/HealthCheckTestsProviderTest.java     | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/src/test/java/org/apache/sling/hc/junitbridge/tests/HealthCheckTestsProviderTest.java
 
b/src/test/java/org/apache/sling/hc/junitbridge/tests/HealthCheckTestsProviderTest.java
index 07069b0..4931534 100644
--- 
a/src/test/java/org/apache/sling/hc/junitbridge/tests/HealthCheckTestsProviderTest.java
+++ 
b/src/test/java/org/apache/sling/hc/junitbridge/tests/HealthCheckTestsProviderTest.java
@@ -190,4 +190,9 @@ public class HealthCheckTestsProviderTest {
         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

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to