* tests/regression/base/All.java,
[cacao.git] / tests / regression / bugzilla / PR58.java
index d70281c294ae1fa367c728bdcd70a6eb4a0652f2..e8c9db083e7557e374eca4d42b57f0f64964573b 100644 (file)
 */
 
 
-import junit.framework.*;
-import junit.textui.*;
+import org.junit.Test;
+import static org.junit.Assert.*;
 
 import java.io.*;
 
-public class PR58 extends TestCase {
-    public static void main(String[] args) {
-        TestRunner.run(suite());
-    }
-
-    public static Test suite() {
-        return new TestSuite(PR58.class);
-    }
-
+public class PR58 {
     class x extends y {}
     class y {}
 
+    @Test
     public void testSuperClass() {
         // Delete the class file which is extended.
         new File("PR58$y.class").delete();
@@ -60,6 +53,7 @@ public class PR58 extends TestCase {
     interface i {}
     class j implements i {}
 
+    @Test
     public void testSuperInterface() {
         // Delete the interface file which is implemented.
         new File("PR58$i.class").delete();