()
| 559 | } |
| 560 | |
| 561 | public void testEmptyError() { |
| 562 | try { |
| 563 | Testpkg.emptyError(); |
| 564 | fail("Empty error wasn't caught"); |
| 565 | } catch (Exception e) { |
| 566 | } |
| 567 | EmptyErrorer empty = new EmptyErrorer() { |
| 568 | @Override public void emptyError() throws Exception { |
| 569 | throw new Exception(""); |
| 570 | } |
| 571 | }; |
| 572 | try { |
| 573 | Testpkg.callEmptyError(empty); |
| 574 | fail("Empty exception wasn't caught"); |
| 575 | } catch (Exception e) { |
| 576 | } |
| 577 | } |
| 578 | |
| 579 | public void testInitCaller() { |
| 580 | Testpkg.init(); |
nothing calls this directly
no test coverage detected