- Sort Score
- Num 10 results
- Language All
Results 161 - 170 of 174 for test_equals (0.52 seconds)
-
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
void testHashCode() { testBlock.setMid(0x1234); assertEquals(0x1234, testBlock.hashCode()); } @Test @DisplayName("Test equals method") void testEquals() { testBlock.setMid(0x1234); TestServerMessageBlock other = new TestServerMessageBlock(mockConfig); other.setMid(0x1234); assertTrue(testBlock.equals(other));
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 36.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MapsTest.java
new EqualsTester() .addEqualityGroup(original, same) .addEqualityGroup(reverse) .addEqualityGroup(diff2) .testEquals(); } public void testMapDifferencePredicateTypical() { Map<Integer, String> left = ImmutableMap.of(1, "a", 2, "b", 3, "c", 4, "d", 5, "e");Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 63.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java
data2 = DfsReferralDataImpl.fromReferral(mockReferral, reqPath, System.currentTimeMillis() + 10000, consumed); } @Test @DisplayName("Should be equal for same values") void testEquals() { assertEquals(data1, data2); assertEquals(data2, data1); } @Test @DisplayName("Should be equal to itself") void testEqualsSelf() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 30.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/StatsTest.java
.addEqualityGroup(new Stats(5, -5.5, 55.6, -5.55, 5.55)) .addEqualityGroup(new Stats(5, -5.5, 55.5, -5.56, 5.55)) .addEqualityGroup(new Stats(5, -5.5, 55.5, -5.55, 5.56)) .testEquals(); } public void testSerializable() { SerializableTester.reserializeAndAssert(MANY_VALUES_STATS_ITERABLE); } public void testToString() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 33.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java
.put("foo", 1) .build()) .addEqualityGroup( ImmutableSetMultimap.<String, Integer>builder().put("bar", 2).put("foo", 3).build()) .testEquals(); } public void testOf() { assertMultimapEquals(ImmutableSetMultimap.of("one", 1), "one", 1); assertMultimapEquals(ImmutableSetMultimap.of("one", 1, "two", 2), "one", 1, "two", 2);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 28.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/HashTestUtils.java
hashFunction.newHasher().putUnencodedChars("ab").putChar('c').hash(), hashFunction.newHasher().putChar('a').putChar('b').putChar('c').hash()) .testEquals(); int size = random.nextInt(2048); byte[] bytes = new byte[size]; random.nextBytes(bytes); String string = new String(bytes, US_ASCII); assertEquals(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 18:19:59 GMT 2025 - 25.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/MoreFilesTest.java
ByteSource source = MoreFiles.asByteSource(link, NOFOLLOW_LINKS); assertThat(source.sizeIfKnown()).isAbsent(); assertThrows(IOException.class, source::size); } } public void testEqual() throws IOException { try (FileSystem fs = Jimfs.newFileSystem(Configuration.unix())) { Path fooPath = fs.getPath("foo"); Path barPath = fs.getPath("bar");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 27.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/FilesTest.java
File temp2 = createTempFile(); Files.write(ASCII, temp2, UTF_8); Files.copy(temp1, temp2); assertThat(Files.toString(temp2, UTF_8)).isEqualTo(ASCII); } public void testEqual() throws IOException { File asciiFile = getTestFile("ascii.txt"); File i18nFile = getTestFile("i18n.txt"); assertFalse(Files.equal(asciiFile, i18nFile)); assertTrue(Files.equal(asciiFile, asciiFile));
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) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
testMessage.setMid(12345L); assertEquals(12345, testMessage.hashCode()); } @Test @DisplayName("Should be equal when MIDs match") void testEquals() { TestServerMessageBlock2 other = new TestServerMessageBlock2(mockConfig); testMessage.setMid(12345L); other.setMid(12345L); assertTrue(testMessage.equals(other));
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 39.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/MoreFilesTest.java
ByteSource source = MoreFiles.asByteSource(link, NOFOLLOW_LINKS); assertThat(source.sizeIfKnown()).isAbsent(); assertThrows(IOException.class, source::size); } } public void testEqual() throws IOException { try (FileSystem fs = Jimfs.newFileSystem(Configuration.unix())) { Path fooPath = fs.getPath("foo"); Path barPath = fs.getPath("bar");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 26.6K bytes - Click Count (0)