release 0.9.6
[debian/openrocket] / test / net / sf / openrocket / util / ReflectionTest.java
index 217332bef6c1b6deb1c5946753009fd4525a2259..9f7c10eda1cf875880916a20eb46f83035c42360 100644 (file)
@@ -15,7 +15,7 @@ public class ReflectionTest {
                
                try {
                        cause = new InvocationTargetException(null);
-                       Reflection.handleInvocationTargetException((InvocationTargetException)cause);
+                       Reflection.handleWrappedException((InvocationTargetException)cause);
                        fail();
                } catch (BugException e) {
                        assertTrue(cause == e.getCause());
@@ -23,7 +23,7 @@ public class ReflectionTest {
                
                try {
                        cause = new IllegalStateException("Test");
-                       Reflection.handleInvocationTargetException(new InvocationTargetException(cause));
+                       Reflection.handleWrappedException(new InvocationTargetException(cause));
                        fail();
                } catch (IllegalStateException e) {
                        assertTrue(cause == e);
@@ -31,7 +31,7 @@ public class ReflectionTest {
                
                try {
                        cause = new AbstractMethodError();
-                       Reflection.handleInvocationTargetException(new InvocationTargetException(cause));
+                       Reflection.handleWrappedException(new InvocationTargetException(cause));
                        fail();
                } catch (AbstractMethodError e) { 
                        assertTrue(cause == e);
@@ -39,7 +39,7 @@ public class ReflectionTest {
                
                try {
                        cause = new IOException();
-                       Reflection.handleInvocationTargetException(new InvocationTargetException(cause));
+                       Reflection.handleWrappedException(new InvocationTargetException(cause));
                        fail();
                } catch (BugException e) { 
                        assertTrue(cause == e.getCause());