Searched refs:TestCharSink (Results 1 – 4 of 4) sorted by relevance
40 private TestCharSink sink;44 sink = new TestCharSink(); in setUp()96 TestCharSink okSink = new TestCharSink(); in testClosesOnErrors_copyingFromCharSourceThatThrows()110 TestCharSink failSink = new TestCharSink(WRITE_THROWS); in testClosesOnErrors_whenWriteThrows()120 TestCharSink okSink = new TestCharSink(); in testClosesOnErrors_whenWritingFromReaderThatThrows()
95 TestCharSink sink = new TestCharSink(); in testCopyTo_charSink()174 okSource.copyTo(new TestCharSink(option)); in testClosesOnErrors_copyingToCharSinkThatThrows()188 failSource.copyTo(new TestCharSink()); in testClosesOnErrors_whenReadThrows()244 static final CharSink BROKEN_WRITE_SINK = new TestCharSink(WRITE_THROWS);245 static final CharSink BROKEN_CLOSE_SINK = new TestCharSink(CLOSE_THROWS);246 static final CharSink BROKEN_OPEN_SINK = new TestCharSink(OPEN_THROWS);
31 public class TestCharSink extends CharSink implements TestStreamSupplier { class35 public TestCharSink(TestOption... options) { in TestCharSink() method in TestCharSink
117 TestCharSink sink = new TestCharSink(); in testCopyTo_charSink()