MCPcopy Create free account
hub / github.com/ReadyTalk/avian / main

Method main

test/Exceptions.java:34–61  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 5

dangerousMethod · 0.95
expectMethod · 0.95
fooMethod · 0.95
fooMethod · 0.95
printStackTraceMethod · 0.80

Tested by

no test coverage detected