- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for testHashCode (0.07 sec)
-
src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java
assertFalse(info.equals(null)); assertFalse(info.equals(new Object())); } @Test @DisplayName("Test hashCode method") void testHashCode() { SmbShareInfo info1 = new SmbShareInfo(TEST_NET_NAME, 0, TEST_REMARK); SmbShareInfo info2 = new SmbShareInfo(TEST_NET_NAME, 1, "Different"); // Same netName should have same hashCode
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/SIDTest.java
assertNotEquals(sid1, new Object()); } /** * Test the hashCode method. * * @throws SmbException if the SID string is invalid */ @Test void testHashCode() throws SmbException { SID sid1 = new SID(adminSidString); SID sid2 = new SID(adminSidBytes, 0); SID sid3 = new SID("S-1-1-0"); assertEquals(sid1.hashCode(), sid2.hashCode());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/BytesTest.java
private static final byte[] VALUES = {Byte.MIN_VALUE, -1, 0, 1, Byte.MAX_VALUE}; // We need to test that our method behaves like the JDK method. @SuppressWarnings("InlineMeInliner") public void testHashCode() { for (byte value : VALUES) { assertThat(Bytes.hashCode(value)).isEqualTo(Byte.hashCode(value)); } } public void testContains() { assertThat(Bytes.contains(EMPTY, (byte) 1)).isFalse();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 17.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 39.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/CharsTest.java
private static final char[] VALUES = {LEAST, 'a', '\u00e0', '\udcaa', GREATEST}; // We need to test that our method behaves like the JDK method. @SuppressWarnings("InlineMeInliner") public void testHashCode() { for (char value : VALUES) { assertThat(Chars.hashCode(value)).isEqualTo(Character.hashCode(value)); } } public void testCheckedCast() { for (char value : VALUES) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
testBlock.setFlags((byte) SmbConstants.FLAGS_RESPONSE); assertTrue(testBlock.isResponse()); } @Test @DisplayName("Test hashCode method") void testHashCode() { testBlock.setMid(0x1234); assertEquals(0x1234, testBlock.hashCode()); } @Test @DisplayName("Test equals method") void testEquals() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NbtAddressTest.java
NbtAddress nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE); assertEquals(0x20, nbtAddress.getNameType()); } @Test void testHashCode() { // Test hashCode consistency mockName = new Name(mockConfig, "TEST1", 0x20, null); Name mockName2 = new Name(mockConfig, "TEST2", 0x20, null);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/DoublesTest.java
}; private static final double[] VALUES = Doubles.concat(NUMBERS, new double[] {NaN}); // We need to test that our method behaves like the JDK method. @SuppressWarnings("InlineMeInliner") public void testHashCode() { for (double value : VALUES) { assertThat(Doubles.hashCode(value)).isEqualTo(Double.hashCode(value)); } } @SuppressWarnings("InlineMeInliner") // We need to test our method.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 30.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/IntsTest.java
private static final int[] VALUES = {LEAST, (int) -1, (int) 0, (int) 1, GREATEST}; // We need to test that our method behaves like the JDK method. @SuppressWarnings("InlineMeInliner") public void testHashCode() { for (int value : VALUES) { assertThat(Ints.hashCode(value)).isEqualTo(Integer.hashCode(value)); } } public void testCheckedCast() { for (int value : VALUES) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 29.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
} } else { try { V unused = map.get(null); } catch (NullPointerException optional) { } } assertInvariants(map); } public void testHashCode() { Map<K, V> map; try { map = makePopulatedMap(); } catch (UnsupportedOperationException e) { return; } assertInvariants(map); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 43.9K bytes - Viewed (0)