From 3a8d3519889a68ddf209ea7c83307bec51cd6da0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Aug 2014 12:11:25 +0200 Subject: java: remove unused methods Change-Id: Ibb905e6f3e7d92a0e558f1f6562e5b472cd2717b --- toolkit/qa/complex/toolkit/Assert.java | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'toolkit/qa') diff --git a/toolkit/qa/complex/toolkit/Assert.java b/toolkit/qa/complex/toolkit/Assert.java index 664840f811b3..0bda0b65c242 100644 --- a/toolkit/qa/complex/toolkit/Assert.java +++ b/toolkit/qa/complex/toolkit/Assert.java @@ -178,24 +178,6 @@ public class Assert assertException( i_message, i_object, i_methodName, argClasses, 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. Those implicitly define - * the classes of the arguments of the method which is called. - * @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. - */ - private static void assertException( final Object i_object, final String i_methodName, 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_methodArgs, i_expectedExceptionClass ); - } - -- cgit