Searched refs:failSource (Results 1 – 4 of 4) sorted by relevance
83 TestByteSource failSource = new TestByteSource(new byte[10], option); in testClosesOnErrors_copyingFromByteSourceThatThrows() local86 failSource.copyTo(okSink); in testClosesOnErrors_copyingFromByteSourceThatThrows()
95 TestCharSource failSource = new TestCharSource(STRING, option); in testClosesOnErrors_copyingFromCharSourceThatThrows() local98 failSource.copyTo(okSink); in testClosesOnErrors_copyingFromCharSourceThatThrows()
186 TestCharSource failSource = new TestCharSource(STRING, READ_THROWS); in testClosesOnErrors_whenReadThrows() local188 failSource.copyTo(new TestCharSink()); in testClosesOnErrors_whenReadThrows()192 assertTrue(failSource.wasStreamClosed()); in testClosesOnErrors_whenReadThrows()
261 TestByteSource failSource = new TestByteSource(bytes, READ_THROWS); in testClosesOnErrors_whenReadThrows() local263 failSource.copyTo(new TestByteSink()); in testClosesOnErrors_whenReadThrows()267 assertTrue(failSource.wasStreamClosed()); in testClosesOnErrors_whenReadThrows()