Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 37 for IteratorTester (6.66 sec)

  1. 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());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  2. 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
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java

        } catch (IllegalArgumentException expected) {
        }
      }
    
      @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
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      private abstract static class EmptyIteratorTester extends IteratorTester<Integer> {
        protected EmptyIteratorTester() {
          super(3, MODIFIABLE, Collections.<Integer>emptySet(), IteratorTester.KnownOrder.KNOWN_ORDER);
        }
      }
    
      @GwtIncompatible // Only used by @GwtIncompatible code
      private abstract static class SingletonIteratorTester extends IteratorTester<Integer> {
        protected SingletonIteratorTester() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  5. 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
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ListsTest.java

        checkFooBarBazList(list);
        SerializableTester.reserializeAndAssert(list);
        assertTrue(list instanceof RandomAccess);
    
        new IteratorTester<String>(
            5, UNMODIFIABLE, asList("foo", "bar", "baz"), IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
          protected Iterator<String> newTargetIterator() {
            return Lists.asList("foo", new String[] {"bar", "baz"}).iterator();
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/AbstractSequentialIteratorTest.java

    @ElementTypesAreNonnullByDefault
    public class AbstractSequentialIteratorTest extends TestCase {
      @GwtIncompatible // Too slow
      public void testDoublerExhaustive() {
        new IteratorTester<Integer>(
            3, UNMODIFIABLE, ImmutableList.of(1, 2), IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
          protected Iterator<Integer> newTargetIterator() {
            return newDoubler(1, 2);
          }
        }.test();
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 17:19:08 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

            }
          }.test();
        }
      }
    
      @GwtIncompatible // unreasonably slow
      public void testKeysIteration() {
        new IteratorTester<String>(
            6,
            MODIFIABLE,
            newArrayList("foo", "foo", "bar", "bar", "foo"),
            IteratorTester.KnownOrder.KNOWN_ORDER) {
          private @Nullable Multimap<String, Integer> multimap;
    
          @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 18K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/ListIteratorTester.java

    import java.util.List;
    import java.util.ListIterator;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A utility similar to {@link IteratorTester} for testing a {@link ListIterator} against a known
     * good reference implementation. As with {@code IteratorTester}, a concrete subclass must provide
     * target iterators on demand. It also requires three additional constructor parameters: {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/ListIteratorTester.java

    import java.util.List;
    import java.util.ListIterator;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A utility similar to {@link IteratorTester} for testing a {@link ListIterator} against a known
     * good reference implementation. As with {@code IteratorTester}, a concrete subclass must provide
     * target iterators on demand. It also requires three additional constructor parameters: {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.3K bytes
    - Viewed (0)
Back to top