Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 168 for NoSuchElementException (0.32 sec)

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

        while (iterator.hasNext()) {
          iterator.next();
        }
    
        try {
          iterator.next();
          fail("iterator.next() should throw NoSuchElementException");
        } catch (NoSuchElementException expected) {
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java

      public void testEmptyMapFirst() {
        try {
          navigableMap.firstKey();
          fail();
        } catch (NoSuchElementException e) {
        }
      }
    
      @CollectionSize.Require(ZERO)
      public void testEmptyMapLast() {
        try {
          assertNull(navigableMap.lastKey());
          fail();
        } catch (NoSuchElementException e) {
        }
      }
    
      @CollectionSize.Require(ONE)
      public void testSingletonMapFirst() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/AbstractSequentialIteratorTest.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.collect.testing.IteratorTester;
    import java.util.Iterator;
    import java.util.NoSuchElementException;
    import junit.framework.AssertionFailedError;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /** Tests for {@link AbstractSequentialIterator}. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 17:19:08 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLookup.java

     */
    package org.apache.maven.internal.impl;
    
    import javax.inject.Inject;
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import java.util.List;
    import java.util.Map;
    import java.util.NoSuchElementException;
    import java.util.Optional;
    
    import org.apache.maven.api.services.Lookup;
    import org.apache.maven.api.services.LookupException;
    import org.codehaus.plexus.PlexusContainer;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Jan 10 12:55:54 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java

      public void testEmptyMapFirst() {
        try {
          navigableMap.firstKey();
          fail();
        } catch (NoSuchElementException e) {
        }
      }
    
      @CollectionSize.Require(ZERO)
      public void testEmptyMapLast() {
        try {
          assertNull(navigableMap.lastKey());
          fail();
        } catch (NoSuchElementException e) {
        }
      }
    
      @CollectionSize.Require(ONE)
      public void testSingletonMapFirst() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java

        while (iterator.hasNext()) {
          iterator.next();
        }
    
        try {
          iterator.next();
          fail("iterator.next() should throw NoSuchElementException");
        } catch (NoSuchElementException expected) {
        }
      }
    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)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/QueueRemoveTester.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.features.CollectionFeature;
    import com.google.common.collect.testing.features.CollectionSize;
    import java.util.NoSuchElementException;
    import org.junit.Ignore;
    
    /**
     * A generic JUnit test which tests {@code remove()} operations on a queue. Can't be invoked
     * directly; please see {@link com.google.common.collect.testing.CollectionTestSuiteBuilder}.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertEquals(-1, iterator.previousIndex());
        try {
          iterator.next();
          fail("no exception thrown");
        } catch (NoSuchElementException expected) {
        }
        try {
          iterator.previous();
          fail("no exception thrown");
        } catch (NoSuchElementException expected) {
        }
        try {
          iterator.remove();
          fail("no exception thrown");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/QueueElementTester.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.features.CollectionFeature;
    import com.google.common.collect.testing.features.CollectionSize;
    import java.util.NoSuchElementException;
    import org.junit.Ignore;
    
    /**
     * A generic JUnit test which tests {@code element()} operations on a queue. Can't be invoked
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.3K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/internal/impl/PropertiesAsMap.java

     * under the License.
     */
    package org.apache.maven.internal.impl;
    
    import java.util.AbstractMap;
    import java.util.AbstractSet;
    import java.util.Iterator;
    import java.util.Map;
    import java.util.NoSuchElementException;
    import java.util.Set;
    
    class PropertiesAsMap extends AbstractMap<String, String> {
    
        private final Map<Object, Object> properties;
    
        PropertiesAsMap(Map<Object, Object> properties) {
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Tue Nov 22 13:26:01 GMT 2022
    - 3.7K bytes
    - Viewed (0)
Back to top