- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for TestCharSource (0.15 seconds)
-
guava-tests/test/com/google/common/io/TestCharSource.java
/** * A char source for testing that has configurable options. * * @author Colin Decker */ @NullUnmarked 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); } @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 1.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/TestCharSource.java
/** * A char source for testing that has configurable options. * * @author Colin Decker */ @NullUnmarked 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); } @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 1.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CharSourceTest.java
} public void testReadFirstLine() throws IOException { TestCharSource lines = new TestCharSource(LINES); assertThat(lines.readFirstLine()).isEqualTo("foo"); assertTrue(lines.wasStreamOpened() && lines.wasStreamClosed()); } public void testReadLines_toList() throws IOException { TestCharSource lines = new TestCharSource(LINES);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 11.6K bytes - Click Count (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));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 4.7K bytes - Click Count (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));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 4.7K bytes - Click Count (0)