X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=tests%2Fregression%2Fbugzilla%2FPR80.java;h=85f23d8209aa1523613fa2fb637de4dd2ba3b30a;hb=528c824602be8a4ff95abd12eb0bf6f077582f90;hp=5e6e401cbdaf0dd80b12134615121cc575e2bfa1;hpb=964d7046a937ac1f22779930bb140f2e2a443bfa;p=cacao.git diff --git a/tests/regression/bugzilla/PR80.java b/tests/regression/bugzilla/PR80.java index 5e6e401cb..85f23d820 100644 --- a/tests/regression/bugzilla/PR80.java +++ b/tests/regression/bugzilla/PR80.java @@ -23,26 +23,14 @@ */ -import junit.framework.*; -import junit.textui.*; - -public class PR80 extends TestCase { - public static void main(String[] args) { - TestRunner.run(suite()); - } - - public static Test suite() { - return new TestSuite(PR80.class); - } - - public void test() { - try { - // Taken from Mauve gnu.testlet.java.lang.System.arraycopy - int[] a = new int[5]; - int[] b = new int[5]; - System.arraycopy(a, 4, b, 4, Integer.MAX_VALUE); - fail("Should throw ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException success) { - } +import org.junit.Test; + +public class PR80 { + @Test ( expected = ArrayIndexOutOfBoundsException.class ) + public void test() throws ArrayIndexOutOfBoundsException { + // Taken from Mauve gnu.testlet.java.lang.System.arraycopy + int[] a = new int[5]; + int[] b = new int[5]; + System.arraycopy(a, 4, b, 4, Integer.MAX_VALUE); } }