Searched refs:failSource (Results 1 – 8 of 8) sorted by relevance
83 TestByteSource failSource = new TestByteSource(new byte[10], option); in testClosesOnErrors_copyingFromByteSourceThatThrows() local86 failSource.copyTo(okSink); in testClosesOnErrors_copyingFromByteSourceThatThrows()
105 TestCharSource failSource = new TestCharSource(STRING, option); in testClosesOnErrors_copyingFromCharSourceThatThrows() local108 failSource.copyTo(okSink); in testClosesOnErrors_copyingFromCharSourceThatThrows()
226 TestCharSource failSource = new TestCharSource(STRING, READ_THROWS); in testClosesOnErrors_whenReadThrows() local228 failSource.copyTo(new TestCharSink()); in testClosesOnErrors_whenReadThrows()232 assertTrue(failSource.wasStreamClosed()); in testClosesOnErrors_whenReadThrows()
335 TestByteSource failSource = new TestByteSource(bytes, READ_THROWS); in testClosesOnErrors_whenReadThrows() local337 failSource.copyTo(new TestByteSink()); in testClosesOnErrors_whenReadThrows()341 assertTrue(failSource.wasStreamClosed()); in testClosesOnErrors_whenReadThrows()
94 TestCharSource failSource = new TestCharSource(STRING, option); in testClosesOnErrors_copyingFromCharSourceThatThrows() local97 failSource.copyTo(okSink); in testClosesOnErrors_copyingFromCharSourceThatThrows()
196 TestCharSource failSource = new TestCharSource(STRING, READ_THROWS); in testClosesOnErrors_whenReadThrows() local198 failSource.copyTo(new TestCharSink()); in testClosesOnErrors_whenReadThrows()202 assertTrue(failSource.wasStreamClosed()); in testClosesOnErrors_whenReadThrows()