Home
last modified time | relevance | path

Searched refs:UOE (Results 1 – 3 of 3) sorted by relevance

/libcore/ojluni/src/test/java/util/SequencedCollection/
DBasicMap.java54 static final Class<? extends Throwable> UOE = UnsupportedOperationException.class; field in BasicMap
503 assertThrows(UOE, () -> view.clear()); in checkUnmodifiableView()
504 assertThrows(UOE, () -> { var it = view.iterator(); it.next(); it.remove(); }); in checkUnmodifiableView()
505 assertThrows(UOE, () -> { var t = view.iterator().next(); view.remove(t); }); in checkUnmodifiableView()
511 assertThrows(UOE, () -> view.removeAll(view)); in checkUnmodifiableView()
512 assertThrows(UOE, () -> view.removeIf(x -> true)); in checkUnmodifiableView()
513 assertThrows(UOE, () -> view.retainAll(List.of())); in checkUnmodifiableView()
524 assertThrows(UOE, () -> view.removeFirst()); in checkUnmodifiableSeqView()
525 assertThrows(UOE, () -> view.removeLast()); in checkUnmodifiableSeqView()
529 assertThrows(UOE, () -> rview.removeFirst()); in checkUnmodifiableSeqView()
[all …]
DBasic.java415 final var UOE = UnsupportedOperationException.class; in checkUnmodifiable1() local
417 assertThrows(UOE, () -> seq.add("x")); in checkUnmodifiable1()
418 assertThrows(UOE, () -> seq.clear()); in checkUnmodifiable1()
419 assertThrows(UOE, () -> { var it = seq.iterator(); it.next(); it.remove(); }); in checkUnmodifiable1()
420 assertThrows(UOE, () -> seq.removeIf(x -> true)); in checkUnmodifiable1()
422 assertThrows(UOE, () -> seq.addFirst("x")); in checkUnmodifiable1()
423 assertThrows(UOE, () -> seq.addLast("x")); in checkUnmodifiable1()
424 assertThrows(UOE, () -> seq.removeFirst()); in checkUnmodifiable1()
425 assertThrows(UOE, () -> seq.removeLast()); in checkUnmodifiable1()
433 assertThrows(UOE, () -> seq.addAll(seq)); in checkUnmodifiable1()
[all …]
/libcore/ojluni/src/test/java/nio/Buffer/
DBasic-X.java.template497 System.out.println("Not applicable, UOE thrown: ");