- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for TestReadBytes (0.06 seconds)
-
android/guava-tests/test/com/google/common/io/ByteStreamsTest.java
super(in); this.max = max; } @Override public long skip(long n) throws IOException { return super.skip(Math.min(max, n)); } } public void testReadBytes() throws IOException { byte[] array = newPreFilledByteArray(1000); assertThat(ByteStreams.readBytes(new ByteArrayInputStream(array), new TestByteProcessor())) .isEqualTo(array); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 22K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/FilesTest.java
assertThat(Files.getNameWithoutExtension("/foo.bar/blah")).isEqualTo("blah"); assertThat(Files.getNameWithoutExtension("/foo/.bar/blah")).isEqualTo("blah"); } public void testReadBytes() throws IOException { ByteProcessor<byte[]> processor = new ByteProcessor<byte[]>() { private final ByteArrayOutputStream out = new ByteArrayOutputStream(); @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 22.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/ByteStreamsTest.java
super(in); this.max = max; } @Override public long skip(long n) throws IOException { return super.skip(Math.min(max, n)); } } public void testReadBytes() throws IOException { byte[] array = newPreFilledByteArray(1000); assertThat(ByteStreams.readBytes(new ByteArrayInputStream(array), new TestByteProcessor())) .isEqualTo(array); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 22K bytes - Click Count (0)