Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 110 for addEqualityGroup (0.17 sec)

  1. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

    public abstract class AbstractStandardUndirectedGraphTest extends AbstractGraphTest {
    
      @After
      public void validateUndirectedEdges() {
        for (Integer node : graph.nodes()) {
          new EqualsTester()
              .addEqualityGroup(
                  graph.predecessors(node), graph.successors(node), graph.adjacentNodes(node))
              .testEquals();
        }
      }
    
      @Override
      @Test
      public void nodes_checkReturnedSetMutability() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

    public abstract class AbstractStandardUndirectedGraphTest extends AbstractGraphTest {
    
      @After
      public void validateUndirectedEdges() {
        for (Integer node : graph.nodes()) {
          new EqualsTester()
              .addEqualityGroup(
                  graph.predecessors(node), graph.successors(node), graph.adjacentNodes(node))
              .testEquals();
        }
      }
    
      @Override
      @Test
      public void nodes_checkReturnedSetMutability() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java

            Set<Integer> expected = newHashSet();
            for (Integer i : contents) {
              if (EVEN.apply(i)) {
                expected.add(i);
              }
            }
            new EqualsTester()
                .addEqualityGroup(expected, filter(createUnfiltered(contents), EVEN))
                .testEquals();
          }
        }
      }
    
      public abstract static class AbstractFilteredSortedSetTest<C extends SortedSet<Integer>>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

                    return factory.getName()
                        + "("
                        + Joiner.on(", ").useForNull("null").join(factoryArgs)
                        + ")";
                  }
                });
        tester.addEqualityGroup(instance, createInstance(factory, equalArgs));
        for (int i = 0; i < params.size(); i++) {
          List<Object> newArgs = Lists.newArrayList(args);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

        FreshValueGenerator generator = new FreshValueGenerator();
        EqualsTester tester = new EqualsTester();
        for (int i = 0; i < instances; i++) {
          tester.addEqualityGroup(generator.generateFresh(type));
        }
        tester.testEquals();
      }
    
      private static <T> void assertEqualInstance(Class<T> type, T value) {
        FreshValueGenerator generator = new FreshValueGenerator();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 17.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        multimap.put("foo", 1);
        multimap.put("bar", 2);
        Multimap<String, Integer> multimapView = Multimaps.forMap(map);
        new EqualsTester().addEqualityGroup(multimap, multimapView).addEqualityGroup(map).testEquals();
        Multimap<String, Integer> multimap2 = HashMultimap.create();
        multimap2.put("foo", 1);
        assertFalse(multimapView.equals(multimap2));
        multimap2.put("bar", 1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

        FreshValueGenerator generator = new FreshValueGenerator();
        EqualsTester tester = new EqualsTester();
        for (int i = 0; i < instances; i++) {
          tester.addEqualityGroup(generator.generateFresh(type));
        }
        tester.testEquals();
      }
    
      private static <T> void assertEqualInstance(Class<T> type, T value) {
        FreshValueGenerator generator = new FreshValueGenerator();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 18.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java

        multimap.put("a", 1);
        multimap.put("b", 2);
        multimap.put("a", 3);
        multimap.put("c", 4);
        LinkedHashMultimap<String, Integer> copy = LinkedHashMultimap.create(multimap);
        new EqualsTester().addEqualityGroup(multimap, copy).testEquals();
      }
    
      public void testCreateFromSizes() {
        LinkedHashMultimap<String, Integer> multimap = LinkedHashMultimap.create(20, 15);
        multimap.put("foo", 1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

            assertEquals(newHashSet(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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/hash/HashTestUtils.java

      private static void assertHashStringEquivalence(HashFunction hashFunction, Random random) {
        // Test that only data and data-order is important, not the individual operations.
        new EqualsTester()
            .addEqualityGroup(
                hashFunction.hashUnencodedChars("abc"),
                hashFunction.newHasher().putUnencodedChars("abc").hash(),
                hashFunction.newHasher().putUnencodedChars("ab").putUnencodedChars("c").hash(),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top