Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ExceptionWithGoodAndBadConstructor (0.29 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

      public void testGetCheckedUntimed_withGoodAndBadExceptionConstructor() throws Exception {
        ExceptionWithGoodAndBadConstructor expected =
            assertThrows(
                ExceptionWithGoodAndBadConstructor.class,
                () ->
                    getChecked(
                        FAILED_FUTURE_CHECKED_EXCEPTION, ExceptionWithGoodAndBadConstructor.class));
        assertThat(expected).hasCauseThat().isSameInstanceAs(CHECKED_EXCEPTION);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

      public void testGetCheckedUntimed_withGoodAndBadExceptionConstructor() throws Exception {
        ExceptionWithGoodAndBadConstructor expected =
            assertThrows(
                ExceptionWithGoodAndBadConstructor.class,
                () ->
                    getChecked(
                        FAILED_FUTURE_CHECKED_EXCEPTION, ExceptionWithGoodAndBadConstructor.class));
        assertThat(expected).hasCauseThat().isSameInstanceAs(CHECKED_EXCEPTION);
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedInputs.java

          super(s);
        }
      }
    
      static final class ExceptionWithGoodAndBadConstructor extends Exception {
        public ExceptionWithGoodAndBadConstructor(String message, Throwable cause) {
          throw new RuntimeException("bad constructor");
        }
    
        public ExceptionWithGoodAndBadConstructor(Throwable cause) {
          super(cause);
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 13:46:56 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedInputs.java

          super(s);
        }
      }
    
      static final class ExceptionWithGoodAndBadConstructor extends Exception {
        public ExceptionWithGoodAndBadConstructor(String message, Throwable cause) {
          throw new RuntimeException("bad constructor");
        }
    
        public ExceptionWithGoodAndBadConstructor(Throwable cause) {
          super(cause);
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 13:46:56 GMT 2023
    - 6.2K bytes
    - Viewed (0)
Back to top