Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for test_hashCode (0.07 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. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerStatusTest.java

            assertFalse(CrawlerStatus.INITIALIZING.equals("INITIALIZING"));
            assertFalse(CrawlerStatus.INITIALIZING.equals(0));
        }
    
        /**
         * Test hashCode method
         */
        public void test_hashCode() {
            // Same status should have same hashCode
            CrawlerStatus status1 = CrawlerStatus.INITIALIZING;
            CrawlerStatus status2 = CrawlerStatus.INITIALIZING;
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top