Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 136 for test_equals (0.05 sec)

  1. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

    @NullUnmarked
    public class ClassPathTest extends TestCase {
      private static final Logger log = Logger.getLogger(ClassPathTest.class.getName());
      private static final File FILE = new File(".");
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(classInfo(ClassPathTest.class), classInfo(ClassPathTest.class))
            .addEqualityGroup(classInfo(Test.class), classInfo(Test.class, getClass().getClassLoader()))
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 20:58:01 UTC 2025
    - 23K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/SetViewTest.java

            .testEquals();
      }
    
      public void testEquals_otherSetContainsThrows() {
        new EqualsTester()
            .addEqualityGroup(new SetContainsThrows())
            .addEqualityGroup(intersection(singleton(null), singleton(null))) // NPE
            .addEqualityGroup(intersection(singleton(0), singleton(0))) // CCE
            .testEquals();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.9K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/toolchain/DefaultToolchainTest.java

            verify(logger).debug("Toolchain {} doesn't match required property: {}", toolchain, "name");
        }
    
        @Test
        void testEquals() {
            ToolchainModel tm1 = new ToolchainModel();
            tm1.setType("jdk");
            tm1.addProvide("version", "1.5");
            tm1.addProvide("vendor", "sun");
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Tue Feb 11 12:33:57 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java

            long result = instance.length();
            assertEquals(expResult, result);
        }
    
        /**
         * Test of equals method, of class SmbShareInfo.
         */
        @Test
        void testEquals() {
            SmbShareInfo instance1 = new SmbShareInfo("SHARE1", 0, "remark1");
            SmbShareInfo instance2 = new SmbShareInfo("SHARE1", 1, "remark2");
            SmbShareInfo instance3 = new SmbShareInfo("SHARE2", 0, "remark1");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5K bytes
    - Viewed (0)
  5. 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)
  6. android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

            assertEquals(new HashSet<>(elements), multimap.asMap().entrySet());
          }
        }.test();
      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(
                LinkedListMultimap.create(), LinkedListMultimap.create(), LinkedListMultimap.create(1))
            .testEquals();
      }
    
      @GwtIncompatible // reflection
      public void testNulls() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top