Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for test_equals (0.04 sec)

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

            assertEquals(item1.hashCode(), item3.hashCode());
    
            // Different input should have different hashCode
            assertNotSame(item1.hashCode(), item4.hashCode());
        }
    
        public void test_equals() {
            // Test equals 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/sso/SsoResponseTypeTest.java

            assertEquals("METADATA", SsoResponseType.METADATA.toString());
            assertEquals("LOGOUT", SsoResponseType.LOGOUT.toString());
        }
    
        public void test_equals() {
            // Test equals method for enum constants
            assertTrue(SsoResponseType.METADATA.equals(SsoResponseType.METADATA));
            assertTrue(SsoResponseType.LOGOUT.equals(SsoResponseType.LOGOUT));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/opensearch/client/CrawlerEngineClientTest.java

            int hashCode1 = crawlerEngineClient.hashCode();
            int hashCode2 = crawlerEngineClient.hashCode();
            assertEquals(hashCode1, hashCode2);
        }
    
        // Test equals method
        public void test_equals() {
            // Test equals method basic functionality
            assertTrue(crawlerEngineClient.equals(crawlerEngineClient));
            assertFalse(crawlerEngineClient.equals(null));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java

            }
    
            assertNotNull(originalException);
            assertNotNull(rethrownException);
            assertSame(originalException, rethrownException);
        }
    
        public void test_equals() {
            // Test that different instances are not equal
            DictionaryExpiredException exception1 = new DictionaryExpiredException();
            DictionaryExpiredException exception2 = new DictionaryExpiredException();
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsItemTest.java

            try {
                item.hashCode();
                fail("Expected NullPointerException");
            } catch (NullPointerException e) {
                // Expected
            }
        }
    
        public void test_equals() {
            // Test equals 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)
  6. src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java

            // Same inputs but different output should have different hash code
            assertNotSame(item1.hashCode(), item4.hashCode());
        }
    
        public void test_equals() {
            String[] inputs1 = { "a", "b" };
            String[] inputs2 = { "b", "a" }; // Different order
            String[] inputs3 = { "c", "d" };
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Tester for equals() and hashCode() methods of a class.
     *
     * <p>The simplest use case is:
     *
     * <pre>
     * new EqualsTester().addEqualityGroup(foo).testEquals();
     * </pre>
     *
     * <p>This tests {@code foo.equals(foo)}, {@code foo.equals(null)}, and a few other operations.
     *
     * <p>For more extensive testing, add multiple equality groups. Each group should contain objects
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/PredicatesTest.java

            .addEqualityGroup(Predicates.not(TRUE))
            .addEqualityGroup(isOdd())
            .testEquals();
      }
    
      public void testNot_equalityForNotOfKnownValues() {
        new EqualsTester()
            .addEqualityGroup(TRUE, Predicates.alwaysTrue())
            .addEqualityGroup(FALSE)
            .addEqualityGroup(Predicates.not(TRUE))
            .testEquals();
    
        new EqualsTester()
            .addEqualityGroup(FALSE, Predicates.alwaysFalse())
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 32.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/FunctionsTest.java

            .addEqualityGroup(g)
            .testEquals();
    
        new EqualsTester()
            .addEqualityGroup(g, Functions.<@Nullable Object>constant(null))
            .addEqualityGroup(Functions.constant("incorrect"))
            .addEqualityGroup(Functions.toStringFunction())
            .addEqualityGroup(f)
            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/EquivalenceTest.java

            .addEquivalenceGroup("a")
            .test();
      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(Equivalence.equals(), Equivalence.equals())
            .addEqualityGroup(Equivalence.identity(), Equivalence.identity())
            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.5K bytes
    - Viewed (0)
Back to top