Home
last modified time | relevance | path

Searched refs:NoSuchElementException (Results 1 – 25 of 169) sorted by relevance

1234567

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DNoSuchElementExceptionTest.java20 import java.util.NoSuchElementException;
31 assertNotNull(new NoSuchElementException()); in test_Constructor()
37 } catch (NoSuchElementException e) { in test_Constructor()
48 assertNotNull(new NoSuchElementException("String")); in test_ConstructorLjava_lang_String()
49 assertNotNull(new NoSuchElementException((String)null)); in test_ConstructorLjava_lang_String()
55 } catch (NoSuchElementException e) { in test_ConstructorLjava_lang_String()
62 var e = new NoSuchElementException(cause); in test_ConstructorLjava_lang_Throwable()
70 var e = new NoSuchElementException("message", cause); in test_ConstructorLjava_langStringLjava_lang_Throwable()
DAbstractQueueTest.java24 import java.util.NoSuchElementException;
52 throw new NoSuchElementException(); in iterator()
265 } catch (NoSuchElementException e) { in test_remove_null()
284 } catch (NoSuchElementException e) { in test_remove()
296 } catch (NoSuchElementException e) { in test_element_empty()
DStringTokenizerTest.java20 import java.util.NoSuchElementException;
146 } catch (NoSuchElementException e) { in test_nextElement()
172 } catch (NoSuchElementException e) { in test_nextToken()
200 } catch (NoSuchElementException e) { in test_nextTokenLjava_lang_String()
DInputMismatchExceptionTest.java20 import java.util.NoSuchElementException;
37 assertTrue(exception instanceof NoSuchElementException); in test_Constructor()
DRefSortedMap.java32 import java.util.NoSuchElementException;
131 throw new NoSuchElementException(); in entrySet()
156 } catch (NoSuchElementException e) { in entrySet()
174 throw new NoSuchElementException();
183 throw new NoSuchElementException();
199 throw new NoSuchElementException();
206 throw new NoSuchElementException();
/libcore/ojluni/src/main/java/java/util/
DNoSuchElementException.java36 public class NoSuchElementException extends RuntimeException { class
44 public NoSuchElementException() { in NoSuchElementException() method in NoSuchElementException
57 public NoSuchElementException(String s, Throwable cause) { in NoSuchElementException() method in NoSuchElementException
71 public NoSuchElementException(Throwable cause) { in NoSuchElementException() method in NoSuchElementException
82 public NoSuchElementException(String s) { in NoSuchElementException() method in NoSuchElementException
DAbstractSequentialList.java91 } catch (NoSuchElementException exc) { in get()
121 } catch (NoSuchElementException exc) { in set()
149 } catch (NoSuchElementException exc) { in add()
177 } catch (NoSuchElementException exc) { in remove()
223 } catch (NoSuchElementException exc) { in addAll()
DAbstractQueue.java117 throw new NoSuchElementException(); in remove()
136 throw new NoSuchElementException(); in element()
DNavigableSet.java337 throw new NoSuchElementException(); in removeFirst()
356 throw new NoSuchElementException(); in removeLast()
/libcore/ojluni/src/main/java/sun/misc/
DCompoundEnumeration.java29 import java.util.NoSuchElementException;
59 throw new NoSuchElementException(); in nextElement()
/libcore/luni/src/test/java/libcore/java/util/
DOldListIteratorTest.java23 import java.util.NoSuchElementException;
52 } catch (NoSuchElementException e) { in testNext()
140 } catch (NoSuchElementException e) { in testPrevious()
154 } catch (NoSuchElementException e) { in testPrevious()
DOptionalLongTest.java27 import java.util.NoSuchElementException;
45 } catch (NoSuchElementException nsee) { in testGet()
123 assertThrows(NoSuchElementException.class, () -> OptionalLong.empty().orElseThrow()); in test_orElseThrow_empty()
/libcore/ojluni/src/test/java/util/Scanner/
DScanTest.java532 } catch (NoSuchElementException e) { in boundaryDelimTest()
747 } catch (NoSuchElementException nsee) { in ioExceptionTest()
851 } catch (NoSuchElementException nse) { in integerPatternBody()
887 } catch (NoSuchElementException nse) { in floatPatternBody()
893 } catch (NoSuchElementException nse) { in floatPatternBody()
899 } catch (NoSuchElementException nse) { in floatPatternBody()
959 } catch (NoSuchElementException nsee) { in findInLineTest()
1011 } catch (NoSuchElementException ime) { in skipTest()
1023 } catch (NoSuchElementException ime) { in skipTest()
1035 } catch (NoSuchElementException ime) { in skipTest()
[all …]
/libcore/ojluni/src/main/java/sun/util/
DResourceBundleEnumeration.java30 import java.util.NoSuchElementException;
79 throw new NoSuchElementException(); in nextElement()
/libcore/ojluni/src/main/java/java/lang/
DCharSequence.java28 import java.util.NoSuchElementException;
160 throw new NoSuchElementException(); in chars()
234 throw new NoSuchElementException(); in codePoints()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DAbstractQueueTest.java40 import java.util.NoSuchElementException;
121 } catch (NoSuchElementException success) {} in testRemoveF()
140 } catch (NoSuchElementException success) {} in testElementF()
/libcore/jsr166-tests/src/test/java/jsr166/
DAbstractQueueTest.java14 import java.util.NoSuchElementException;
98 } catch (NoSuchElementException success) {} in testRemoveF()
117 } catch (NoSuchElementException success) {} in testElementF()
/libcore/ojluni/src/test/java/util/Collections/
DSingletonIterator.java34 import java.util.NoSuchElementException;
49 } catch (NoSuchElementException success) { } in assertIteratorExhausted()
DEnumerationAsIterator.java42 import java.util.NoSuchElementException;
144 } catch (NoSuchElementException e) {
164 } catch (NoSuchElementException e) {
188 } catch (NoSuchElementException e) {
/libcore/ojluni/src/test/java/util/Collection/
DIteratorAtEnd.java44 import java.util.NoSuchElementException;
205 THROWS(NoSuchElementException.class, in test()
226 THROWS(NoSuchElementException.class, it::previous); in test()
241 THROWS(NoSuchElementException.class, it::next); in test()
/libcore/ojluni/src/test/java/util/Optional/
DBasicInt.java40 import java.util.NoSuchElementException;
70 assertThrows(NoSuchElementException.class, () -> empty.getAsInt()); in checkEmpty()
73 assertThrows(NoSuchElementException.class, () -> OptionalInt_orElseThrow(empty)); in checkEmpty()
188 } catch (NoSuchElementException expected) { in OptionalInt_orElseThrow()
DBasicDouble.java40 import java.util.NoSuchElementException;
69 assertThrows(NoSuchElementException.class, () -> empty.getAsDouble()); in checkEmpty()
72 assertThrows(NoSuchElementException.class, () -> OptionalDouble_orElseThrow(empty)); in checkEmpty()
191 } catch (NoSuchElementException expected) { in OptionalDouble_orElseThrow()
DBasicLong.java40 import java.util.NoSuchElementException;
69 assertThrows(NoSuchElementException.class, () -> empty.getAsLong()); in checkEmpty()
72 assertThrows(NoSuchElementException.class, () -> OptionalLong_orElseThrow(empty)); in checkEmpty()
190 } catch (NoSuchElementException expected) { in OptionalLong_orElseThrow()
/libcore/ojluni/src/main/java/sun/nio/fs/
DAbstractPath.java32 import java.util.NoSuchElementException;
84 throw new NoSuchElementException(); in iterator()
/libcore/ojluni/src/main/java/java/nio/file/
DFileTreeIterator.java33 import java.util.NoSuchElementException;
113 throw new NoSuchElementException(); in next()

1234567