Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 32 for testHashCode (0.04 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. guava-tests/test/com/google/common/primitives/BooleansTest.java

      private static final boolean[] ARRAY_FALSE_TRUE = {false, true};
    
      private static final boolean[] VALUES = {false, true};
    
      @SuppressWarnings("InlineMeInliner") // We need to test our method.
      public void testHashCode() {
        assertThat(Booleans.hashCode(true)).isEqualTo(Boolean.TRUE.hashCode());
        assertThat(Booleans.hashCode(false)).isEqualTo(Boolean.FALSE.hashCode());
      }
    
      public void testTrueFirst() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25K bytes
    - Viewed (0)
  7. 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)
  8. guava-tests/test/com/google/common/primitives/LongsTest.java

      private static final long[] VALUES = {MIN_VALUE, -1L, 0L, 1L, MAX_VALUE};
    
      // We need to test that our method behaves like the JDK method.
      @SuppressWarnings("InlineMeInliner")
      public void testHashCode() {
        for (long value : VALUES) {
          assertWithMessage("hashCode for " + value)
              .that(Longs.hashCode(value))
              .isEqualTo(Long.hashCode(value));
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/ShortsTest.java

      private static final short[] VALUES = {LEAST, (short) -1, (short) 0, (short) 1, GREATEST};
    
      // We need to test that our method behaves like the JDK method.
      @SuppressWarnings("InlineMeInliner")
      public void testHashCode() {
        for (short value : VALUES) {
          assertThat(Shorts.hashCode(value)).isEqualTo(Short.hashCode(value));
        }
      }
    
      public void testCheckedCast() {
        for (short value : VALUES) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

          };
    
      private static final float[] VALUES = Floats.concat(NUMBERS, new float[] {NaN});
    
      // We need to test that our method behaves like the JDK method.
      @SuppressWarnings("InlineMeInliner")
      public void testHashCode() {
        for (float value : VALUES) {
          assertThat(Floats.hashCode(value)).isEqualTo(Float.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
    - 29.4K bytes
    - Viewed (0)
Back to top