X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=tests%2Fregression%2Fbugzilla%2FPR57.java;h=2bd11f5d04f0aa2bc1274f56e6fdc416597894cc;hb=528c824602be8a4ff95abd12eb0bf6f077582f90;hp=b8a960fe636efd0875d82f550e4c8cce25fca002;hpb=6ad3cc33aecf0a54efe4be14f99626239d545203;p=cacao.git diff --git a/tests/regression/bugzilla/PR57.java b/tests/regression/bugzilla/PR57.java index b8a960fe6..2bd11f5d0 100644 --- a/tests/regression/bugzilla/PR57.java +++ b/tests/regression/bugzilla/PR57.java @@ -23,24 +23,11 @@ */ -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"); } }