MCPcopy Create free account
hub / github.com/spotbugs/spotbugs / testFail3

Method testFail3

spotbugsTestCases/src/java/RECTest.java:64–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62
63 // should fail -- catches E, but E not thrown
64 public void testFail3() {
65 try {
66 for (int i = 0; i < 1000; i++)
67 for (int j = i; j < 1000; j++)
68 throwsNothing();
69 IOException e = new IOException();
70 throw e;
71 } catch (Exception e) {
72 dontTriggerEmptyExceptionHandler();
73 }
74 }
75
76 // should fail -- catches E, but E not thrown
77 public void testFail4() {

Callers

nothing calls this directly

Calls 2

throwsNothingMethod · 0.95

Tested by

no test coverage detected