From 34bcf9b498bccb5c924f4cec850ff15d88df6f07 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 13 Aug 2014 10:08:31 +0200 Subject: java: remove dead methods found by UCDetector Change-Id: I219caa8e680dba5a395541a778df6144841c4dde --- toolkit/qa/complex/toolkit/Assert.java | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) (limited to 'toolkit/qa') 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 no 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 ); - } + + } -- cgit