Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testForEachKnownOrder (0.12 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionForEachTester.java

        collection.forEach(elements::add);
        Helpers.assertEqualIgnoringOrder(asList(createSamplesArray()), elements);
      }
    
      @CollectionFeature.Require(KNOWN_ORDER)
      public void testForEachKnownOrder() {
        List<E> elements = new ArrayList<>();
        collection.forEach(elements::add);
        List<E> expected = Helpers.copyToList(getOrderedElements());
        assertEquals("Different ordered iteration", expected, elements);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/MapForEachTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MapForEachTester<K, V> extends AbstractMapTester<K, V> {
      @CollectionFeature.Require(KNOWN_ORDER)
      public void testForEachKnownOrder() {
        List<Entry<K, V>> entries = new ArrayList<>();
        getMap().forEach((k, v) -> entries.add(entry(k, v)));
        assertEquals(getOrderedElements(), entries);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/MapForEachTester.java

    @IgnoreJRERequirement // We opt into library desugaring for our tests.
    public class MapForEachTester<K, V> extends AbstractMapTester<K, V> {
      @CollectionFeature.Require(KNOWN_ORDER)
      public void testForEachKnownOrder() {
        List<Entry<K, V>> entries = new ArrayList<>();
        getMap().forEach((k, v) -> entries.add(entry(k, v)));
        assertEquals(getOrderedElements(), entries);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top