(Class<? extends Executable> cls)
| 233 | |
| 234 | |
| 235 | public static void testClass(Class<? extends Executable> cls) { |
| 236 | System.out.print(new Formatter().format("%-25s (", cls.getSimpleName())); |
| 237 | runner.assertsCurrent = 0; |
| 238 | pushStack(cls.getSimpleName()); |
| 239 | try { |
| 240 | Executable test = cls.getDeclaredConstructor().newInstance(); |
| 241 | test.execute(); |
| 242 | } catch(Exception e) { |
| 243 | runner.error(e); |
| 244 | } |
| 245 | popStack(); |
| 246 | System.out.print(")\n"); |
| 247 | } |
| 248 | |
| 249 | public static void testMethod(Object o, String methodName) { |
| 250 | pushStack(methodName); |