- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for contentEquals (0.72 sec)
-
android/guava-tests/test/com/google/common/io/ByteSourceTester.java
if (sizeIfKnown.isPresent()) { assertEquals(expected.length, (long) sizeIfKnown.get()); } } public void testContentEquals() throws IOException { assertTrue( source.contentEquals( new ByteSource() { @Override public InputStream openStream() throws IOException { return new RandomAmountInputStream(
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 8.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ByteSourceTest.java
} public void testContentEquals() throws IOException { assertTrue(source.contentEquals(source)); assertTrue(source.wasStreamOpened() && source.wasStreamClosed()); ByteSource equalSource = new TestByteSource(bytes); assertTrue(source.contentEquals(equalSource)); assertTrue(new TestByteSource(bytes).contentEquals(source));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 16.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ByteSourceTest.java
} public void testContentEquals() throws IOException { assertTrue(source.contentEquals(source)); assertTrue(source.wasStreamOpened() && source.wasStreamClosed()); ByteSource equalSource = new TestByteSource(bytes); assertTrue(source.contentEquals(equalSource)); assertTrue(new TestByteSource(bytes).contentEquals(source));
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 16.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/TreeTraverserTest.java
iterable.forEach(t -> forEachBuilder.append(t.value)); assertTrue( "Iterator content was " + builder + " but forEach content was " + forEachBuilder, builder.toString().contentEquals(forEachBuilder)); return builder.toString(); } public void testPreOrder() { assertThat(iterationOrder(ADAPTER.preOrderTraversal(h))).isEqualTo("hdabcegf"); } public void testPostOrder() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 3.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
int chunk2 = dataSize - chunk1; // Write just enough to not trip the threshold if (chunk1 > 0) { write(out, data, 0, chunk1, singleByte); assertTrue(ByteSource.wrap(data).slice(0, chunk1).contentEquals(source)); } File file = out.getFile(); assertNull(file); // Write data to go over the threshold if (chunk2 > 0) { if (JAVA_IO_TMPDIR.value().equals("/sdcard")) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 5.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ByteSourceTester.java
if (sizeIfKnown.isPresent()) { assertEquals(expected.length, (long) sizeIfKnown.get()); } } public void testContentEquals() throws IOException { assertTrue( source.contentEquals( new ByteSource() { @Override public InputStream openStream() throws IOException { return new RandomAmountInputStream(
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 8.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/ClassPathTest.java
System.setProperty(PATH_SEPARATOR.key(), oldPathSeparator); System.setProperty(JAVA_CLASS_PATH.key(), oldClassPath); } } private static boolean contentEquals(URL left, URL right) throws IOException { return Resources.asByteSource(left).contentEquals(Resources.asByteSource(right)); } private static class Nested {} public void testNulls() throws IOException {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Apr 26 14:02:27 GMT 2024 - 24.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/ClassPathTest.java
System.setProperty(PATH_SEPARATOR.key(), oldPathSeparator); System.setProperty(JAVA_CLASS_PATH.key(), oldClassPath); } } private static boolean contentEquals(URL left, URL right) throws IOException { return Resources.asByteSource(left).contentEquals(Resources.asByteSource(right)); } private static class Nested {} public void testNulls() throws IOException {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Jul 10 17:06:37 GMT 2023 - 27.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesTest.java
rf.writeByte(0); rf.close(); assertEquals(asciiFile.length(), temp.length()); assertFalse(Files.equal(asciiFile, temp)); assertTrue(Files.asByteSource(asciiFile).contentEquals(Files.asByteSource(asciiFile))); // 0-length files have special treatment (/proc, etc.) assertTrue(Files.equal(asciiFile, new BadLengthFile(asciiFile, 0))); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 22.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FilesTest.java
rf.writeByte(0); rf.close(); assertEquals(asciiFile.length(), temp.length()); assertFalse(Files.equal(asciiFile, temp)); assertTrue(Files.asByteSource(asciiFile).contentEquals(Files.asByteSource(asciiFile))); // 0-length files have special treatment (/proc, etc.) assertTrue(Files.equal(asciiFile, new BadLengthFile(asciiFile, 0))); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 22.2K bytes - Viewed (0)