Method
testMethod
(Object o, String methodName)
Source from the content-addressed store, hash-verified
| 247 | } |
| 248 | |
| 249 | public static void testMethod(Object o, String methodName) { |
| 250 | pushStack(methodName); |
| 251 | try { |
| 252 | Method m = o.getClass().getMethod(methodName); |
| 253 | m.invoke(o); |
| 254 | } catch(java.lang.reflect.InvocationTargetException e) { |
| 255 | runner.error(e.getCause()); |
| 256 | } catch(Exception e) { |
| 257 | runner.error(e); |
| 258 | } |
| 259 | popStack(); |
| 260 | } |
| 261 | |
| 262 | public static void pushStack(String s) { |
| 263 | runner.stack.addLast(s); |
Tested by
no test coverage detected