Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for fail (0.14 sec)

  1. guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

        try {
          iter.peek();
          fail("peek() should throw NoSuchElementException at end");
        } catch (NoSuchElementException expected) {
        }
    
        try {
          iter.peek();
          fail("peek() should continue to throw NoSuchElementException at end");
        } catch (NoSuchElementException expected) {
        }
    
        try {
          iter.next();
          fail("next() should throw NoSuchElementException as usual");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

        try {
          iter.peek();
          fail("peek() should throw NoSuchElementException at end");
        } catch (NoSuchElementException expected) {
        }
    
        try {
          iter.peek();
          fail("peek() should continue to throw NoSuchElementException at end");
        } catch (NoSuchElementException expected) {
        }
    
        try {
          iter.next();
          fail("next() should throw NoSuchElementException as usual");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/AbstractIteratorTest.java

        try {
          iter.hasNext();
          fail("No exception thrown");
        } catch (Exception e) {
          if (!(e instanceof SomeCheckedException)) {
            throw e;
          }
        }
    
        // But the second time, AbstractIterator itself throws an ISE
        try {
          iter.hasNext();
          fail("No exception thrown");
        } catch (IllegalStateException expected) {
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu May 04 09:41:29 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/AbstractIteratorTest.java

        try {
          iter.hasNext();
          fail("No exception thrown");
        } catch (Exception e) {
          if (!(e instanceof SomeCheckedException)) {
            throw e;
          }
        }
    
        // But the second time, AbstractIterator itself throws an ISE
        try {
          iter.hasNext();
          fail("No exception thrown");
        } catch (IllegalStateException expected) {
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu May 04 09:41:29 GMT 2023
    - 6.1K bytes
    - Viewed (0)
Back to top