Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for expectCollects (0.07 sec)

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

            (ms1, ms2) -> ms1.equals(ms2) && ms1.entrySet().asList().equals(ms2.entrySet().asList());
        CollectorTester.of(ImmutableMultiset.<String>toImmutableMultiset(), equivalence)
            .expectCollects(ImmutableMultiset.of())
            .expectCollects(
                ImmutableMultiset.of("a", "a", "b", "c", "c", "c"), "a", "a", "b", "c", "c", "c");
      }
    
      public void testToImmutableMultisetCountFunction() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableTableTest.java

            toImmutableTable(Cell::getRowKey, Cell::getColumnKey, Cell::getValue);
        CollectorTester.of(collector)
            .expectCollects(ImmutableTable.of())
            .expectCollects(ImmutableTable.of("one", "uno", 1), immutableCell("one", "uno", 1));
      }
    
      public void testToImmutableTableMergingSanityTest() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

                ImmutableSortedMultiset.<String>toImmutableSortedMultiset(
                    String.CASE_INSENSITIVE_ORDER),
                equivalence)
            .expectCollects(ImmutableSortedMultiset.emptyMultiset(String.CASE_INSENSITIVE_ORDER))
            .expectCollects(
                ImmutableSortedMultiset.orderedBy(String.CASE_INSENSITIVE_ORDER)
                    .addCopies("a", 2)
                    .addCopies("b", 1)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

                .onResultOf((ImmutableListMultimap<?, ?> mm) -> mm.asMap().entrySet().asList())
                .and(Equivalence.equals());
        CollectorTester.of(collector, equivalence)
            .expectCollects(ImmutableListMultimap.of())
            .expectCollects(
                ImmutableListMultimap.of("a", 1, "b", 2, "a", 3, "c", 4),
                mapEntry("a", 1),
                mapEntry("b", 2),
                mapEntry("a", 3),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

        CollectorTester.of(
                ImmutableRangeMap.<Range<Integer>, Integer, Integer>toImmutableRangeMap(
                    k -> k, k -> k.lowerEndpoint()))
            .expectCollects(rangeMap, rangeOne, rangeTwo);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        Equivalence<ImmutableMap<String, Integer>> equivalence =
            Equivalence.equals().<Entry<String, Integer>>pairwise().onResultOf(ImmutableMap::entrySet);
        CollectorTester.of(collector, equivalence)
            .expectCollects(
                ImmutableMap.of("one", 1, "two", 2, "three", 3),
                mapEntry("one", 1),
                mapEntry("two", 2),
                mapEntry("three", 3));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

                .and(Equivalence.equals().onResultOf(ImmutableSortedSet::asList))
                .and(Equivalence.equals());
        CollectorTester.of(collector, equivalence)
            .expectCollects(
                ImmutableSortedSet.of("a", "b", "c", "d"), "a", "b", "a", "c", "b", "b", "d");
      }
    
      public void testToImmutableSortedSet_customComparator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

            Equivalence.equals()
                .<Entry<String, Integer>>pairwise()
                .onResultOf(ImmutableBiMap::entrySet);
        CollectorTester.of(collector, equivalence)
            .expectCollects(
                ImmutableBiMap.of("one", 1, "two", 2, "three", 3),
                mapEntry("one", 1),
                mapEntry("two", 2),
                mapEntry("three", 3));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableListTest.java

            () -> ImmutableList.sortedCopyOf(String.CASE_INSENSITIVE_ORDER, (Collection<String>) c));
      }
    
      public void testToImmutableList() {
        CollectorTester.of(ImmutableList.<String>toImmutableList())
            .expectCollects(ImmutableList.of("a", "b", "c", "d"), "a", "b", "c", "d");
      }
    
      // Basic tests
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullPointers() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.5K bytes
    - Viewed (0)
Back to top