Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 128 for test_equals1 (0.07 sec)

  1. guava-tests/test/com/google/common/base/SuppliersTest.java

      public void testOfInstance_equals() {
        new EqualsTester()
            .addEqualityGroup(Suppliers.ofInstance("foo"), Suppliers.ofInstance("foo"))
            .addEqualityGroup(Suppliers.ofInstance("bar"))
            .testEquals();
      }
    
      public void testCompose_equals() {
        new EqualsTester()
            .addEqualityGroup(
                Suppliers.compose(Functions.constant(1), Suppliers.ofInstance("foo")),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:23:04 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        assertThrows(IllegalArgumentException.class, () -> ContiguousSet.closed(2L, 1L));
        assertThrows(IllegalArgumentException.class, () -> ContiguousSet.closedOpen(2L, 1L));
      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(
                ContiguousSet.create(Range.closed(1, 3), integers()),
                ContiguousSet.closed(1, 3),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

          new EqualsTester()
              .addEqualityGroup(cache.asMap().keySet(), keys)
              .addEqualityGroup(ImmutableSet.of())
              .testEquals();
          assertEquals(WARMUP_SIZE, keys.size());
          for (int i = WARMUP_MIN; i < WARMUP_MAX; i++) {
            Object key = warmed.get(i - WARMUP_MIN).getKey();
            assertTrue(keys.contains(key));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 15K bytes
    - Viewed (0)
  6. android/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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:23:04 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. 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
    - 27.6K bytes
    - Viewed (0)
  8. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

              .addEqualityGroup(
                  network.inEdges(node), network.outEdges(node), network.incidentEdges(node))
              .testEquals();
          new EqualsTester()
              .addEqualityGroup(
                  network.predecessors(node), network.successors(node), network.adjacentNodes(node))
              .testEquals();
    
          for (Integer adjacentNode : network.adjacentNodes(node)) {
            assertThat(network.edgesConnecting(node, adjacentNode))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        assertThrows(IllegalArgumentException.class, () -> ContiguousSet.closed(2L, 1L));
        assertThrows(IllegalArgumentException.class, () -> ContiguousSet.closedOpen(2L, 1L));
      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(
                ContiguousSet.create(Range.closed(1, 3), integers()),
                ContiguousSet.closed(1, 3),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top