Searched refs:okSink (Results 1 – 4 of 4) sorted by relevance
84 TestByteSink okSink = new TestByteSink(); in testClosesOnErrors_copyingFromByteSourceThatThrows() local86 failSource.copyTo(okSink); in testClosesOnErrors_copyingFromByteSourceThatThrows()94 !okSink.wasStreamOpened() || okSink.wasStreamClosed()); in testClosesOnErrors_copyingFromByteSourceThatThrows()109 TestByteSink okSink = new TestByteSink(); in testClosesOnErrors_writingFromInputStreamThatThrows() local112 okSink.writeFrom(in); in testClosesOnErrors_writingFromInputStreamThatThrows()116 assertTrue(okSink.wasStreamClosed()); in testClosesOnErrors_writingFromInputStreamThatThrows()
106 TestCharSink okSink = new TestCharSink(); in testClosesOnErrors_copyingFromCharSourceThatThrows() local108 failSource.copyTo(okSink); in testClosesOnErrors_copyingFromCharSourceThatThrows()116 !okSink.wasStreamOpened() || okSink.wasStreamClosed()); in testClosesOnErrors_copyingFromCharSourceThatThrows()131 TestCharSink okSink = new TestCharSink(); in testClosesOnErrors_whenWritingFromReaderThatThrows() local133 okSink.writeFrom(new TestReader(READ_THROWS)); in testClosesOnErrors_whenWritingFromReaderThatThrows()137 assertTrue(okSink.wasStreamClosed()); in testClosesOnErrors_whenWritingFromReaderThatThrows()
95 TestCharSink okSink = new TestCharSink(); in testClosesOnErrors_copyingFromCharSourceThatThrows() local97 failSource.copyTo(okSink); in testClosesOnErrors_copyingFromCharSourceThatThrows()105 !okSink.wasStreamOpened() || okSink.wasStreamClosed()); in testClosesOnErrors_copyingFromCharSourceThatThrows()120 TestCharSink okSink = new TestCharSink(); in testClosesOnErrors_whenWritingFromReaderThatThrows() local122 okSink.writeFrom(new TestReader(READ_THROWS)); in testClosesOnErrors_whenWritingFromReaderThatThrows()126 assertTrue(okSink.wasStreamClosed()); in testClosesOnErrors_whenWritingFromReaderThatThrows()