Searched refs:suppressor (Results 1 – 4 of 4) sorted by relevance
45 private TestSuppressor suppressor; field in CloserTest49 suppressor = new TestSuppressor(); in setUp()58 assertTrue(closer.suppressor instanceof Closer.LoggingSuppressor); in testCreate()60 assertTrue(closer.suppressor instanceof Closer.SuppressingSuppressor); in testCreate()65 Closer closer = new Closer(suppressor); in testNoExceptionsThrown()81 assertTrue(suppressor.suppressions.isEmpty()); in testNoExceptionsThrown()85 Closer closer = new Closer(suppressor); in testExceptionThrown_fromTryBlock()107 assertTrue(suppressor.suppressions.isEmpty()); in testExceptionThrown_fromTryBlock()111 Closer closer = new Closer(suppressor); in testExceptionThrown_whenCreatingCloseables()134 assertTrue(suppressor.suppressions.isEmpty()); in testExceptionThrown_whenCreatingCloseables()[all …]
106 @VisibleForTesting final Suppressor suppressor; field in Closer112 @VisibleForTesting Closer(Suppressor suppressor) { in Closer() argument113 this.suppressor = checkNotNull(suppressor); // checkNotNull to satisfy null tests in Closer()218 suppressor.suppress(closeable, throwable, e); in close()
15 import suppressor53 test_suppressor = suppressor.Suppressor(finder)
14 import suppressor57 test_suppressor = suppressor.Suppressor(finder)