Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 129 for test_equals (0.12 sec)

  1. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

        assertEquals(rangeMap.asMapOfRanges(), copy.asMapOfRanges());
      }
    
      // Overriding testEquals because it seems that we get spurious failures when it things empty
      // should be unequal to empty.
      public void testEquals() {
        TreeRangeMap<Integer, Integer> empty = TreeRangeMap.create();
        TreeRangeMap<Integer, Integer> nonEmpty = TreeRangeMap.create();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 30K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/SerializableTester.java

       *     or if the hashcodes are different.
       */
      @CanIgnoreReturnValue
      public static <T> T reserializeAndAssert(T object) {
        T copy = reserialize(object);
        new EqualsTester().addEqualityGroup(object, copy).testEquals();
        Assert.assertEquals(object.getClass(), copy.getClass());
        return copy;
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/SetsTest.java

        new EqualsTester()
            .addEqualityGroup(cartesian, equivalent)
            .addEqualityGroup(different1)
            .addEqualityGroup(different2)
            .testEquals();
      }
    
      public void testCartesianProduct_unrelatedTypes() {
        Set<Integer> x = set(1, 2);
        Set<String> y = set("3", "4");
    
        List<Object> exp1 = list((Object) 1, "3");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java

            NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("?", "user", "password");
            assertEquals("user", auth.getName());
        }
    
        // Test equals method
        @Test
        void testEquals() {
            NtlmPasswordAuthentication auth1 = new NtlmPasswordAuthentication("DOMAIN", "user", "password");
            NtlmPasswordAuthentication auth2 = new NtlmPasswordAuthentication("DOMAIN", "user", "password");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

        // return collection::iterator;
        return new Iterable<T>() {
          @Override
          public Iterator<T> iterator() {
            return collection.iterator();
          }
        };
      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(ImmutableIntArray.of())
            .addEqualityGroup(
                ImmutableIntArray.of(1, 2),
                reserialize(ImmutableIntArray.of(1, 2)),
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

        Set<Entry<String, Integer>> entrySet = map.entrySet();
        assertTrue(entrySet instanceof SynchronizedSet);
        assertSame(mutex, ((SynchronizedSet<?>) entrySet).mutex);
      }
    
      public void testEquals() {
        boolean unused = create().equals(new HashMap<String, Integer>());
      }
    
      public void testHashCode() {
        int unused = create().hashCode();
      }
    
      public void testToString() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 28 19:11:14 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        // return collection::iterator;
        return new Iterable<T>() {
          @Override
          public Iterator<T> iterator() {
            return collection.iterator();
          }
        };
      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(ImmutableDoubleArray.of())
            .addEqualityGroup(
                ImmutableDoubleArray.of(1, 2),
                reserialize(ImmutableDoubleArray.of(1, 2)),
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

            .addEqualityGroup(parse("softValues"), parse("softValues"))
            .addEqualityGroup(parse("weakValues"), parse("weakValues"))
            .addEqualityGroup(parse("recordStats"), parse("recordStats"))
            .testEquals();
      }
    
      @SuppressWarnings("ReturnValueIgnored")
      public void testMaximumWeight_withWeigher() {
        CacheBuilder<Object, Object> builder = CacheBuilder.from(parse("maximumWeight=9000"));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        // return collection::iterator;
        return new Iterable<T>() {
          @Override
          public Iterator<T> iterator() {
            return collection.iterator();
          }
        };
      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(ImmutableDoubleArray.of())
            .addEqualityGroup(
                ImmutableDoubleArray.of(1, 2),
                reserialize(ImmutableDoubleArray.of(1, 2)),
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/lang/StringUtilTest.java

            assertEquals("3", false, StringUtil.contains("abc", "d"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testEquals() throws Exception {
            assertEquals("1", true, StringUtil.equals("a", "a"));
            assertEquals("2", true, StringUtil.equals(null, null));
            assertEquals("3", false, StringUtil.equals("a", null));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 12K bytes
    - Viewed (0)
Back to top