Method
testMethod
(Object o, String methodName)
Source from the content-addressed store, hash-verified
| 210 | } |
| 211 | |
| 212 | public static void testMethod(Object o, String methodName) { |
| 213 | pushStack(methodName); |
| 214 | try { |
| 215 | Method m = o.getClass().getMethod(methodName); |
| 216 | m.invoke(o); |
| 217 | } catch(java.lang.reflect.InvocationTargetException e) { |
| 218 | runner.error(e.getCause()); |
| 219 | } catch(Exception e) { |
| 220 | runner.error(e); |
| 221 | } |
| 222 | popStack(); |
| 223 | } |
| 224 | |
| 225 | public static void pushStack(String s) { |
| 226 | runner.stack.addLast(s); |
Tested by
no test coverage detected