Searched refs:WRITE_THROWS (Results 1 – 6 of 6) sorted by relevance
22 import static com.google.common.io.TestOption.WRITE_THROWS;56 throwIf(WRITE_THROWS); in write()63 throwIf(WRITE_THROWS); in write()
22 import static com.google.common.io.TestOption.WRITE_THROWS;97 TestByteSink failSink = new TestByteSink(WRITE_THROWS); in testClosesOnErrors_whenWriteThrows()
22 import static com.google.common.io.TestOption.WRITE_THROWS;171 for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) { in testClosesOnErrors_copyingToCharSinkThatThrows()198 okSource.copyTo(new TestWriter(WRITE_THROWS)); in testClosesOnErrors_copyingToWriterThatThrows()244 static final CharSink BROKEN_WRITE_SINK = new TestCharSink(WRITE_THROWS);
22 import static com.google.common.io.TestOption.WRITE_THROWS;110 TestCharSink failSink = new TestCharSink(WRITE_THROWS); in testClosesOnErrors_whenWriteThrows()
25 import static com.google.common.io.TestOption.WRITE_THROWS;246 for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) { in testClosesOnErrors_copyingToByteSinkThatThrows()273 OutputStream out = new TestOutputStream(ByteStreams.nullOutputStream(), WRITE_THROWS); in testClosesOnErrors_copyingToOutputStreamThatThrows()322 = new TestByteSink(WRITE_THROWS);
28 WRITE_THROWS, enumConstant