- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for testSneakyThrow (0.14 seconds)
-
android/guava-tests/test/com/google/common/base/AbstractIteratorTest.java
assertFalse(iter.hasNext()); // Make sure computeNext() doesn't get invoked again assertFalse(iter.hasNext()); assertThrows(NoSuchElementException.class, iter::next); } public void testSneakyThrow() throws Exception { Iterator<Integer> iter = new AbstractIterator<Integer>() { boolean haveBeenCalled; @Override public Integer computeNext() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 5.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/AbstractIteratorTest.java
assertFalse(iter.hasNext()); // Make sure computeNext() doesn't get invoked again assertFalse(iter.hasNext()); assertThrows(NoSuchElementException.class, iter::next); } public void testSneakyThrow() throws Exception { Iterator<Integer> iter = new AbstractIterator<Integer>() { boolean haveBeenCalled; @Override public Integer computeNext() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 5.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
* ability to throw the correct exception in the future. */ assertThrows(NoSuchElementException.class, empty::peek); assertThrows(NoSuchElementException.class, empty::peek); } public void testSneakyThrow() throws Exception { Iterator<Integer> iter = new AbstractIterator<Integer>() { boolean haveBeenCalled; @Override public Integer computeNext() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 8K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
* ability to throw the correct exception in the future. */ assertThrows(NoSuchElementException.class, empty::peek); assertThrows(NoSuchElementException.class, empty::peek); } public void testSneakyThrow() throws Exception { Iterator<Integer> iter = new AbstractIterator<Integer>() { boolean haveBeenCalled; @Override public Integer computeNext() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 8K bytes - Click Count (0)