Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for MyException (0.43 sec)

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

        assertTrue(broken.hasNext());
        // We can't retrieve even the known first element:
        try {
          broken.next();
          fail();
        } catch (MyException expected) {
        }
        try {
          broken.next();
          fail();
        } catch (MyException expected) {
        }
      }
    
      private static Iterator<Integer> newDoubler(int first, final int last) {
        return new AbstractSequentialIterator<Integer>(first) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 17:19:08 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        class MyException extends Exception {}
        Callable<@Nullable Void> callable =
            new Callable<@Nullable Void>() {
              @Override
              public @Nullable Void call() throws Exception {
                assertEquals(Thread.currentThread().getName(), newName.get());
                throw new MyException();
              }
            };
        try {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        class MyException extends Exception {}
        Callable<@Nullable Void> callable =
            new Callable<@Nullable Void>() {
              @Override
              public @Nullable Void call() throws Exception {
                assertEquals(Thread.currentThread().getName(), newName.get());
                throw new MyException();
              }
            };
        try {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/AbstractSequentialIteratorTest.java

        assertTrue(broken.hasNext());
        // We can't retrieve even the known first element:
        try {
          broken.next();
          fail();
        } catch (MyException expected) {
        }
        try {
          broken.next();
          fail();
        } catch (MyException expected) {
        }
      }
    
      private static Iterator<Integer> newDoubler(int first, final int last) {
        return new AbstractSequentialIterator<Integer>(first) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 17:19:08 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

       */
      public void testAllAsList_logging_same_cause() throws Exception {
        try {
          MyException exception1 = new MyException();
          MyException exception2 = new MyException();
          MyException exception3 = new MyException();
    
          MyException sameInstance = new MyException();
          exception1.initCause(sameInstance);
          exception2.initCause(sameInstance);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

       */
      public void testAllAsList_logging_same_cause() throws Exception {
        try {
          MyException exception1 = new MyException();
          MyException exception2 = new MyException();
          MyException exception3 = new MyException();
    
          MyException sameInstance = new MyException();
          exception1.initCause(sameInstance);
          exception2.initCause(sameInstance);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
Back to top