120121122123124125126127128129130
assertNull(ex.getMessage()); assertEquals(-1, ex.getLineNumber()); assertEquals(-1, ex.getColumnNumber()); try { ex.initCause(new Exception()); fail("Reinitialized cause over null"); } catch (IllegalStateException result) { // success }
128129130131132133134135136137138
catch (IllegalStateException result) { // success } try { ex.initCause(null); fail("Reinitialized cause over null"); } catch (IllegalStateException result) { // success }