Searched refs:throwsOnClose (Results 1 – 2 of 2) sorted by relevance
134 TestCloseable c1 = closer.register(TestCloseable.throwsOnClose(exception)); in testExceptionThrown_whileClosingLastCloseable()156 TestCloseable c2 = closer.register(TestCloseable.throwsOnClose(exception)); in testExceptionThrown_whileClosingFirstCloseable()177 TestCloseable c1 = closer.register(TestCloseable.throwsOnClose(c1Exception)); in testCloseExceptionsSuppressed_whenExceptionThrownFromTryBlock()178 TestCloseable c2 = closer.register(TestCloseable.throwsOnClose(c2Exception)); in testCloseExceptionsSuppressed_whenExceptionThrownFromTryBlock()208 TestCloseable c1 = closer.register(TestCloseable.throwsOnClose(c1Exception)); in testCloseExceptionsSuppressed_whenExceptionThrownClosingFirstCloseable()209 TestCloseable c2 = closer.register(TestCloseable.throwsOnClose(c2Exception)); in testCloseExceptionsSuppressed_whenExceptionThrownClosingFirstCloseable()210 TestCloseable c3 = closer.register(TestCloseable.throwsOnClose(c3Exception)); in testCloseExceptionsSuppressed_whenExceptionThrownClosingFirstCloseable()234 TestCloseable c1 = closer.register(TestCloseable.throwsOnClose(c1Exception)); in testRuntimeExceptions()235 TestCloseable c2 = closer.register(TestCloseable.throwsOnClose(c2Exception)); in testRuntimeExceptions()264 TestCloseable c1 = closer.register(TestCloseable.throwsOnClose(c1Exception)); in testErrors()[all …]