orionlibs commented on code in PR #1069: URL: https://github.com/apache/commons-lang/pull/1069#discussion_r1249605535
########## src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java: ########## @@ -850,4 +850,40 @@ public void testWrapAndUnwrapThrowable() { final Throwable t = assertThrows(Throwable.class, () -> ExceptionUtils.wrapAndThrow(new TestThrowable())); assertTrue(ExceptionUtils.hasCause(t, TestThrowable.class)); } + + @Test + public void testIsChecked_unchecked() { + final boolean result = ExceptionUtils.isChecked(new IllegalArgumentException()); Review Comment: @garydgregory so, I don't need to create local variables if the assertion looks like this: assertTrue(ExceptionUtils.isChecked(new IllegalArgumentException())); Is that what you mean? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org