Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 135 for testEquals (0.15 sec)

  1. android/guava-tests/test/com/google/common/net/HostSpecifierTest.java

            .addEqualityGroup(spec("2001:db8::2"))
            .addEqualityGroup(spec("google.com"), spec("google.com"))
            .addEqualityGroup(spec("www.google.com"))
            .testEquals();
      }
    
      private static HostSpecifier spec(String specifier) {
        return HostSpecifier.fromValid(specifier);
      }
    
      public void testNulls() {
        final NullPointerTester tester = new NullPointerTester();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Feb 18 15:33:20 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/FileModelSourceTest.java

    /**
     * Test that validate the solution of MNG-6261 issue
     *
     */
    class FileModelSourceTest {
    
        /**
         * Test of equals method, of class FileModelSource.
         */
        @Test
        void testEquals() throws Exception {
            File tempFile = createTempFile("pomTest");
            FileModelSource instance = new FileModelSource(tempFile);
    
            assertFalse(instance.equals(null));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        return LAST_COLOR_ADDED;
      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(ImmutableSet.of(), ImmutableSet.of())
            .addEqualityGroup(ImmutableSet.of(1), ImmutableSet.of(1), ImmutableSet.of(1, 1))
            .addEqualityGroup(ImmutableSet.of(1, 2, 1), ImmutableSet.of(2, 1, 1))
            .testEquals();
      }
    
      @GwtIncompatible("internals")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MultisetsImmutableEntryTest.java

      }
    
      public void testToStringNull() {
        assertEquals("null", entry(NE, 1).toString());
        assertEquals("null x 2", entry(NE, 2).toString());
      }
    
      public void testEquals() {
        assertEquals(control("foo", 1), entry("foo", 1));
        assertEquals(control("bar", 2), entry("bar", 2));
        assertFalse(control("foo", 1).equals(entry("foo", 2)));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        new EqualsTester().addEqualityGroup(input, multimap).testEquals();
      }
    
      public void testCopyOfEmpty() {
        ArrayListMultimap<String, Integer> input = ArrayListMultimap.create();
        ImmutableListMultimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input);
        new EqualsTester().addEqualityGroup(input, multimap).testEquals();
      }
    
      public void testCopyOfImmutableListMultimap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MultisetsImmutableEntryTest.java

      }
    
      public void testToStringNull() {
        assertEquals("null", entry(NE, 1).toString());
        assertEquals("null x 2", entry(NE, 2).toString());
      }
    
      public void testEquals() {
        assertEquals(control("foo", 1), entry("foo", 1));
        assertEquals(control("bar", 2), entry("bar", 2));
        assertFalse(control("foo", 1).equals(entry("foo", 2)));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

    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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 25K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/RangeTest.java

        assertFalse(predicate.apply(4));
      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(Range.open(1, 5), Range.range(1, OPEN, 5, OPEN))
            .addEqualityGroup(Range.greaterThan(2), Range.greaterThan(2))
            .addEqualityGroup(Range.all(), Range.all())
            .addEqualityGroup("Phil")
            .testEquals();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/AbstractMapEntryTest.java

        assertEquals("null=1", entry(NK, 1).toString());
        assertEquals("foo=null", entry("foo", NV).toString());
        assertEquals("null=null", entry(NK, NV).toString());
      }
    
      public void testEquals() {
        Entry<String, Integer> foo1 = entry("foo", 1);
        // Explicitly call `equals`; `assertEquals` might return fast
        assertTrue(foo1.equals(foo1));
        assertEquals(control("foo", 1), foo1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 25 11:57:12 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top