Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/io/
DCharSourceTest.java172 TestCharSource okSource = new TestCharSource(STRING); in testClosesOnErrors_copyingToCharSinkThatThrows() local
174 okSource.copyTo(new TestCharSink(option)); in testClosesOnErrors_copyingToCharSinkThatThrows()
181 !okSource.wasStreamOpened() || okSource.wasStreamClosed()); in testClosesOnErrors_copyingToCharSinkThatThrows()
196 TestCharSource okSource = new TestCharSource(STRING); in testClosesOnErrors_copyingToWriterThatThrows() local
198 okSource.copyTo(new TestWriter(WRITE_THROWS)); in testClosesOnErrors_copyingToWriterThatThrows()
202 assertTrue(okSource.wasStreamClosed()); in testClosesOnErrors_copyingToWriterThatThrows()
DByteSourceTest.java247 TestByteSource okSource = new TestByteSource(bytes); in testClosesOnErrors_copyingToByteSinkThatThrows() local
249 okSource.copyTo(new TestByteSink(option)); in testClosesOnErrors_copyingToByteSinkThatThrows()
256 !okSource.wasStreamOpened() || okSource.wasStreamClosed()); in testClosesOnErrors_copyingToByteSinkThatThrows()
271 TestByteSource okSource = new TestByteSource(bytes); in testClosesOnErrors_copyingToOutputStreamThatThrows() local
274 okSource.copyTo(out); in testClosesOnErrors_copyingToOutputStreamThatThrows()
278 assertTrue(okSource.wasStreamClosed()); in testClosesOnErrors_copyingToOutputStreamThatThrows()