Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/io/
DTestOutputStream.java20 import static com.google.common.io.TestOption.CLOSE_THROWS;
71 throwIf(CLOSE_THROWS); in close()
DTestInputStream.java20 import static com.google.common.io.TestOption.CLOSE_THROWS;
84 throwIf(CLOSE_THROWS); in close()
DCloseablesTest.java72 new ByteArrayInputStream(new byte[1]), TestOption.CLOSE_THROWS); in testCloseQuietly_inputStreamWithEatenException()
78 TestReader in = new TestReader(TestOption.CLOSE_THROWS); in testCloseQuietly_readerWithEatenException()
DByteSinkTest.java19 import static com.google.common.io.TestOption.CLOSE_THROWS;
82 for (TestOption option : EnumSet.of(OPEN_THROWS, READ_THROWS, CLOSE_THROWS)) { in testClosesOnErrors_copyingFromByteSourceThatThrows()
DCharSinkTest.java19 import static com.google.common.io.TestOption.CLOSE_THROWS;
94 for (TestOption option : EnumSet.of(OPEN_THROWS, READ_THROWS, CLOSE_THROWS)) { in testClosesOnErrors_copyingFromCharSourceThatThrows()
DCharSourceTest.java19 import static com.google.common.io.TestOption.CLOSE_THROWS;
171 for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) { in testClosesOnErrors_copyingToCharSinkThatThrows()
242 static final CharSource BROKEN_CLOSE_SOURCE = new TestCharSource("ABC", CLOSE_THROWS);
245 static final CharSink BROKEN_CLOSE_SINK = new TestCharSink(CLOSE_THROWS);
DTestOption.java29 CLOSE_THROWS, enumConstant
DByteSourceTest.java21 import static com.google.common.io.TestOption.CLOSE_THROWS;
246 for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) { in testClosesOnErrors_copyingToByteSinkThatThrows()
312 = new TestByteSource(new byte[10], CLOSE_THROWS);
318 = new TestByteSink(CLOSE_THROWS);