Home
last modified time | relevance | path

Searched refs:throwOnClose (Results 1 – 1 of 1) sorted by relevance

/external/guava/guava-tests/test/com/google/common/io/
DCloserTest.java436 private final Throwable throwOnClose; field in CloserTest.TestCloseable
443 static TestCloseable throwsOnClose(Throwable throwOnClose) throws IOException { in throwsOnClose() argument
444 return new TestCloseable(throwOnClose); in throwsOnClose()
451 private TestCloseable(@Nullable Throwable throwOnClose) { in TestCloseable() argument
452 this.throwOnClose = throwOnClose; in TestCloseable()
462 if (throwOnClose != null) { in close()
463 Throwables.propagateIfPossible(throwOnClose, IOException.class); in close()
464 throw new AssertionError(throwOnClose); in close()