(String[] args)
| 32 | } |
| 33 | |
| 34 | public static void main(String[] args) { |
| 35 | boolean threw = false; |
| 36 | try { |
| 37 | dangerous(); |
| 38 | } catch (Exception e) { |
| 39 | e.printStackTrace(); |
| 40 | threw = true; |
| 41 | } |
| 42 | expect(threw); |
| 43 | threw = false; |
| 44 | |
| 45 | try { |
| 46 | ThrowError.foo(); |
| 47 | } catch (AssertionError e) { |
| 48 | e.printStackTrace(); |
| 49 | threw = true; |
| 50 | } |
| 51 | expect(threw); |
| 52 | threw = false; |
| 53 | |
| 54 | try { |
| 55 | ThrowException.foo(); |
| 56 | } catch (ExceptionInInitializerError e) { |
| 57 | e.printStackTrace(); |
| 58 | threw = true; |
| 59 | } |
| 60 | expect(threw); |
| 61 | } |
| 62 | |
| 63 | } |
nothing calls this directly
no test coverage detected