- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for TestOutputStream (0.17 seconds)
-
guava-tests/test/com/google/common/io/ByteSourceTest.java
ByteSource slice = source.slice(offset, length); assertArrayEquals(expected, slice.read()); } public void testCopyToStream_doesNotCloseThatStream() throws IOException { TestOutputStream out = new TestOutputStream(ByteStreams.nullOutputStream()); assertFalse(out.closed()); source.copyTo(out); assertFalse(out.closed()); } public void testClosesOnErrors_copyingToByteSinkThatThrows() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 15.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/TestByteSink.java
} @Override public OutputStream openStream() throws IOException { outputStreamOpened = true; bytes.reset(); // truncate return new Out(); } private final class Out extends TestOutputStream { Out() throws IOException { super(bytes, options); } @Override public void close() throws IOException { outputStreamClosed = true; super.close(); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jul 14 14:44:08 GMT 2025 - 1.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/ByteSourceTest.java
ByteSource slice = source.slice(offset, length); assertArrayEquals(expected, slice.read()); } public void testCopyToStream_doesNotCloseThatStream() throws IOException { TestOutputStream out = new TestOutputStream(ByteStreams.nullOutputStream()); assertFalse(out.closed()); source.copyTo(out); assertFalse(out.closed()); } public void testClosesOnErrors_copyingToByteSinkThatThrows() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 15.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/TestByteSink.java
} @Override public OutputStream openStream() throws IOException { outputStreamOpened = true; bytes.reset(); // truncate return new Out(); } private final class Out extends TestOutputStream { Out() throws IOException { super(bytes, options); } @Override public void close() throws IOException { outputStreamClosed = true; super.close(); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jul 14 14:44:08 GMT 2025 - 1.9K bytes - Click Count (0)