* tests/regression/bugzilla/All.java: Added PR57.
authorChristian Thalinger <twisti@complang.tuwien.ac.at>
Wed, 26 Mar 2008 13:27:38 +0000 (14:27 +0100)
committerChristian Thalinger <twisti@complang.tuwien.ac.at>
Wed, 26 Mar 2008 13:27:38 +0000 (14:27 +0100)
* tests/regression/bugzilla/PR57.java: New file.

tests/regression/bugzilla/All.java
tests/regression/bugzilla/PR57.java [new file with mode: 0644]

index 6b1efa05f11d634428eb749cbd3dd53cd4f49215..d0183567a73d9850efb8b5d22509f5186314535a 100644 (file)
@@ -45,6 +45,7 @@ public class All extends TestCase {
         // Add your test here.
 
         suite.addTest(new TestSuite(PR52.class));
+        suite.addTest(new TestSuite(PR57.class));
 
         return suite;
     }
diff --git a/tests/regression/bugzilla/PR57.java b/tests/regression/bugzilla/PR57.java
new file mode 100644 (file)
index 0000000..b8a960f
--- /dev/null
@@ -0,0 +1,46 @@
+/* tests/regression/bugzilla/PR57.java
+
+   Copyright (C) 2008
+   CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
+
+   This file is part of CACAO.
+
+   This program is free software; you can redistribute it and/or
+   modify it under the terms of the GNU General Public License as
+   published by the Free Software Foundation; either version 2, or (at
+   your option) any later version.
+
+   This program is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+   02110-1301, USA.
+
+*/
+
+
+import junit.framework.*;
+import junit.textui.*;
+
+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) {
+        }
+    }
+}