Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for test_hashCode (0.11 sec)

  1. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsItemTest.java

            item.setNewInput("");
            assertTrue(item.isDeleted());
    
            item.setNewInput(null);
            assertFalse(item.isDeleted());
        }
    
        public void test_hashCode() {
            // Test hashCode method
            StopwordsItem item1 = new StopwordsItem(1, "test");
            StopwordsItem item2 = new StopwordsItem(1, "test");
            StopwordsItem item3 = new StopwordsItem(2, "test");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsItemTest.java

            item.setNewInput("");
            assertTrue(item.isDeleted());
    
            item.setNewInput(null);
            assertFalse(item.isDeleted());
        }
    
        public void test_hashCode() {
            // Test hashCode method
            ProtwordsItem item1 = new ProtwordsItem(1, "word");
            ProtwordsItem item2 = new ProtwordsItem(2, "word");
            ProtwordsItem item3 = new ProtwordsItem(1, "different");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java

            // Should not throw exception
            item.sort();
    
            // Original inputs should still be sorted
            assertEquals("a", item.getInputs()[0]);
        }
    
        public void test_hashCode() {
            String[] inputs1 = { "a", "b" };
            String[] inputs2 = { "a", "b" };
            String[] inputs3 = { "c", "d" };
    
            CharMappingItem item1 = new CharMappingItem(1L, inputs1, "output");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/util/PrunedTagTest.java

    import org.codelibs.fess.unit.UnitFessTestCase;
    import org.w3c.dom.NamedNodeMap;
    import org.w3c.dom.Node;
    
    public class PrunedTagTest extends UnitFessTestCase {
    
        public void test_hashCode() {
            PrunedTag prunedtag = new PrunedTag("tag");
    
            assertTrue(prunedtag.hashCode() >= 0);
    
        }
    
        public void test_equals() {
    
            PrunedTag prunedtag = new PrunedTag("tag");
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 21K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top