summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-13 10:08:31 +0200
committerNoel Grandin <noel@peralex.com>2014-08-13 10:24:10 +0200
commit34bcf9b498bccb5c924f4cec850ff15d88df6f07 (patch)
tree4d9604ec8c3b73639338ec45a0618b5daa5cf0ed /toolkit
parent347926e8e57c1825261daa46c1886aa2ebf9571b (diff)
java: remove dead methods
found by UCDetector Change-Id: I219caa8e680dba5a395541a778df6144841c4dde
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/qa/complex/toolkit/Assert.java25
1 files changed, 2 insertions, 23 deletions
diff --git a/toolkit/qa/complex/toolkit/Assert.java b/toolkit/qa/complex/toolkit/Assert.java
index 1077fb308813..5776f1f6c79c 100644
--- a/toolkit/qa/complex/toolkit/Assert.java
+++ b/toolkit/qa/complex/toolkit/Assert.java
@@ -197,29 +197,8 @@ public class Assert
i_object, i_methodName, i_methodArgs, i_expectedExceptionClass );
}
- /** invokes a given method on a given object, and assures a certain exception is caught
- * @param i_object is the object to invoke the method on
- * @param i_methodName is the name of the method to invoke
- * @param i_methodArgs are the arguments to pass to the method
- * @param i_argClasses are the classes to assume for the arguments of the methods
- * @param i_expectedExceptionClass is the class of the exception to be caught. If this is null,
- * it means that <em>no</em> exception must be throw by invoking the method.
- */
- public static void assertException( final Object i_object, final String i_methodName, final Class<?>[] i_argClasses,
- final Object[] i_methodArgs, final Class<?> i_expectedExceptionClass )
- {
- assertException(
- "did not catch the expected exception (" +
- ( ( i_expectedExceptionClass == null ) ? "none" : i_expectedExceptionClass.getName() ) +
- ") while calling " + i_object.getClass().getName() + "." + i_methodName,
- i_object, i_methodName, i_argClasses, i_methodArgs, i_expectedExceptionClass );
- }
- public static void assertException( Object i_object, Class<?> _unoInterfaceClass, String i_methodName, Object[] i_methodArgs,
- Class<?> i_expectedExceptionClass )
- {
- assertException( UnoRuntime.queryInterface( _unoInterfaceClass, i_object ), i_methodName,
- i_methodArgs, i_expectedExceptionClass );
- }
+
+
}