Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for IteratorTester (0.2 sec)

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

     * List<String> actualElements =
     *     Collections.unmodifiableList(
     *         Arrays.asList("a", "b", "c", "d", "e"));
     * IteratorTester<String> iteratorTester =
     *     new IteratorTester<String>(
     *         6,
     *         IteratorFeature.UNMODIFIABLE,
     *         expectedElements,
     *         IteratorTester.KnownOrder.KNOWN_ORDER) {
     *       @Override
     *       protected Iterator<String> newTargetIterator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java

      @CollectionFeature.Require({SUPPORTS_ITERATOR_REMOVE, KNOWN_ORDER})
      public void testRemovingIteratorKnownOrder() {
        new IteratorTester<E>(
            4,
            MODIFIABLE,
            getSubjectGenerator().order(asList(e0(), e1(), e1(), e2())),
            IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
          protected Iterator<E> newTargetIterator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

        new IteratorTester<Integer>(
            3, MODIFIABLE, newArrayList(1, 2), IteratorTester.KnownOrder.UNKNOWN_ORDER) {
          @Override
          protected Iterator<Integer> newTargetIterator() {
            return newArrayList(2, 1).iterator();
          }
        }.test();
      }
    
      public void testUnknownOrderUnrecognizedElement() {
        IteratorTester<Integer> tester =
            new IteratorTester<Integer>(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java

      @CollectionFeature.Require({SUPPORTS_ITERATOR_REMOVE, KNOWN_ORDER})
      public void testRemovingIteratorKnownOrder() {
        new IteratorTester<E>(
            4,
            MODIFIABLE,
            getSubjectGenerator().order(asList(e0(), e1(), e1(), e2())),
            IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
          protected Iterator<E> newTargetIterator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

        new IteratorTester<Integer>(
            3, MODIFIABLE, newArrayList(1, 2), IteratorTester.KnownOrder.UNKNOWN_ORDER) {
          @Override
          protected Iterator<Integer> newTargetIterator() {
            return newArrayList(2, 1).iterator();
          }
        }.test();
      }
    
      public void testUnknownOrderUnrecognizedElement() {
        IteratorTester<Integer> tester =
            new IteratorTester<Integer>(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

    @ElementTypesAreNonnullByDefault
    public class PeekingIteratorTest extends TestCase {
    
      /**
       * Version of {@link IteratorTester} that compares an iterator over a given collection of elements
       * (used as the reference iterator) against a {@code PeekingIterator} that *wraps* such an
       * iterator (used as the target iterator).
       *
       * <p>This IteratorTester makes copies of the master so that it can later verify that {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java

      public void testIterator_knownOrderRemoveSupported() {
        runIteratorTest(MODIFIABLE, IteratorTester.KnownOrder.KNOWN_ORDER, getOrderedElements());
      }
    
      @CollectionFeature.Require(value = KNOWN_ORDER, absent = SUPPORTS_ITERATOR_REMOVE)
      public void testIterator_knownOrderRemoveUnsupported() {
        runIteratorTest(UNMODIFIABLE, IteratorTester.KnownOrder.KNOWN_ORDER, getOrderedElements());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java

      public void testIterator_knownOrderRemoveSupported() {
        runIteratorTest(MODIFIABLE, IteratorTester.KnownOrder.KNOWN_ORDER, getOrderedElements());
      }
    
      @CollectionFeature.Require(value = KNOWN_ORDER, absent = SUPPORTS_ITERATOR_REMOVE)
      public void testIterator_knownOrderRemoveUnsupported() {
        runIteratorTest(UNMODIFIABLE, IteratorTester.KnownOrder.KNOWN_ORDER, getOrderedElements());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

    @ElementTypesAreNonnullByDefault
    public class PeekingIteratorTest extends TestCase {
    
      /**
       * Version of {@link IteratorTester} that compares an iterator over a given collection of elements
       * (used as the reference iterator) against a {@code PeekingIterator} that *wraps* such an
       * iterator (used as the target iterator).
       *
       * <p>This IteratorTester makes copies of the master so that it can later verify that {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java

      }
    
      @GwtIncompatible // unreasonably slow
      public void testGetIteration() {
        new IteratorTester<Integer>(
            6,
            MODIFIABLE,
            newLinkedHashSet(asList(2, 3, 4, 7, 8)),
            IteratorTester.KnownOrder.KNOWN_ORDER) {
          private @Nullable Multimap<String, Integer> multimap;
    
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top