Searched refs:okSource (Results 1 – 2 of 2) sorted by relevance
172 TestCharSource okSource = new TestCharSource(STRING); in testClosesOnErrors_copyingToCharSinkThatThrows() local174 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() local198 okSource.copyTo(new TestWriter(WRITE_THROWS)); in testClosesOnErrors_copyingToWriterThatThrows()202 assertTrue(okSource.wasStreamClosed()); in testClosesOnErrors_copyingToWriterThatThrows()
247 TestByteSource okSource = new TestByteSource(bytes); in testClosesOnErrors_copyingToByteSinkThatThrows() local249 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() local274 okSource.copyTo(out); in testClosesOnErrors_copyingToOutputStreamThatThrows()278 assertTrue(okSource.wasStreamClosed()); in testClosesOnErrors_copyingToOutputStreamThatThrows()