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

Method testFail2

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

Source from the content-addressed store, hash-verified

50
51 // should fail -- catches E, but E not thrown
52 public void testFail2() {
53 try {
54 for (int i = 0; i < 1000; i++)
55 for (int j = i; j < 1000; j++)
56 throwsNothing();
57 throw new IOException();
58 } catch (Exception e) {
59 dontTriggerEmptyExceptionHandler();
60 }
61 }
62
63 // should fail -- catches E, but E not thrown
64 public void testFail3() {

Callers

nothing calls this directly

Calls 2

throwsNothingMethod · 0.95

Tested by

no test coverage detected