- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for TestCharSource (0.22 sec)
-
guava-tests/test/com/google/common/io/TestCharSource.java
import java.io.Reader; /** * A char source for testing that has configurable options. * * @author Colin Decker */ public class TestCharSource extends CharSource implements TestStreamSupplier { private final TestByteSource byteSource; public TestCharSource(String content, TestOption... options) { this.byteSource = new TestByteSource(content.getBytes(UTF_8), options); } @Override
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Fri Nov 09 21:39:24 GMT 2012 - 1.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/TestCharSource.java
import java.io.Reader; /** * A char source for testing that has configurable options. * * @author Colin Decker */ public class TestCharSource extends CharSource implements TestStreamSupplier { private final TestByteSource byteSource; public TestCharSource(String content, TestOption... options) { this.byteSource = new TestByteSource(content.getBytes(UTF_8), options); } @Override
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Apr 21 02:27:51 GMT 2017 - 1.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSourceTest.java
} public void testReadFirstLine() throws IOException { TestCharSource lines = new TestCharSource(LINES); assertEquals("foo", lines.readFirstLine()); assertTrue(lines.wasStreamOpened() && lines.wasStreamClosed()); } public void testReadLines_toList() throws IOException { TestCharSource lines = new TestCharSource(LINES);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 13K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSourceTest.java
} public void testReadFirstLine() throws IOException { TestCharSource lines = new TestCharSource(LINES); assertEquals("foo", lines.readFirstLine()); assertTrue(lines.wasStreamOpened() && lines.wasStreamClosed()); } public void testReadLines_toList() throws IOException { TestCharSource lines = new TestCharSource(LINES);
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 12K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSinkTest.java
} public void testClosesOnErrors_copyingFromCharSourceThatThrows() { for (TestOption option : EnumSet.of(OPEN_THROWS, READ_THROWS, CLOSE_THROWS)) { TestCharSource failSource = new TestCharSource(STRING, option); TestCharSink okSink = new TestCharSink(); assertThrows(IOException.class, () -> failSource.copyTo(okSink));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 4.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSinkTest.java
} public void testClosesOnErrors_copyingFromCharSourceThatThrows() { for (TestOption option : EnumSet.of(OPEN_THROWS, READ_THROWS, CLOSE_THROWS)) { TestCharSource failSource = new TestCharSource(STRING, option); TestCharSink okSink = new TestCharSink(); assertThrows(IOException.class, () -> failSource.copyTo(okSink));
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 4K bytes - Viewed (0)