* tests/regression/base/All.java,
[cacao.git] / tests / regression / bugzilla / PR57.java
index b8a960fe636efd0875d82f550e4c8cce25fca002..2bd11f5d04f0aa2bc1274f56e6fdc416597894cc 100644 (file)
 */
 
 
-import junit.framework.*;
-import junit.textui.*;
+import org.junit.Test;
 
-public class PR57 extends TestCase {
-    public static void main(String[] args) {
-        TestRunner.run(suite());
-    }
-
-    public static Test suite() {
-        return new TestSuite(PR57.class);
-    }
-
-    public void test() {
-        try {
-            Class.forName("x");
-            fail("Should throw ClassNotFoundException");
-        }
-        catch (ClassNotFoundException success) {
-        }
+public class PR57 {
+    @Test ( expected = ClassNotFoundException.class )
+    public void test() throws ClassNotFoundException {
+        Class.forName("x");
     }
 }