146 |
|
try {realMain(args);} catch (Throwable t) {unexpected(t);} |
147 |
|
System.out.printf("%nPassed = %d, failed = %d%n%n", passed, failed); |
148 |
|
if (failed > 0) throw new AssertionError("Some tests failed");} |
149 |
< |
private static abstract class Fun {abstract void f() throws Throwable;} |
149 |
> |
private abstract static class Fun {abstract void f() throws Throwable;} |
150 |
|
static void THROWS(Class<? extends Throwable> k, Fun... fs) { |
151 |
|
for (Fun f : fs) |
152 |
|
try { f.f(); fail("Expected " + k.getName() + " not thrown"); } |