Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for hasCauseThat (0.1 sec)

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

        assertThat(expected).hasCauseThat().isEqualTo(UNCHECKED_EXCEPTION);
      }
    
      public void testGetCheckedUntimed_executionExceptionError() throws TwoArgConstructorException {
        ExecutionError expected =
            assertThrows(
                ExecutionError.class,
                () -> getChecked(FAILED_FUTURE_ERROR, TwoArgConstructorException.class));
        assertThat(expected).hasCauseThat().isEqualTo(ERROR);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

        IllegalStateException expected =
            assertThrows(IllegalStateException.class, () -> service.awaitTerminated());
        executionThread.join();
        assertThat(expected).hasCauseThat().isEqualTo(service.failureCause());
        assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("kaboom!");
        assertTrue(service.shutDownCalled);
        assertEquals(Service.State.FAILED, service.state());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/ThrowablesTest.java

        assertThat(expected).hasCauseThat().isSameInstanceAs(cause);
      }
    
      @GwtIncompatible // getCauseAs(Throwable, Class)
      public void testGetCauseAs() {
        SomeCheckedException cause = new SomeCheckedException();
        SomeChainingException thrown = new SomeChainingException(cause);
    
        assertThat(thrown).hasCauseThat().isSameInstanceAs(cause);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractIdleServiceTest.java

              }
            };
        assertEquals(0, service.startUpCalled);
        RuntimeException e =
            assertThrows(RuntimeException.class, () -> service.startAsync().awaitRunning());
        assertThat(e).hasCauseThat().isSameInstanceAs(exception);
        assertEquals(1, service.startUpCalled);
        assertEquals(Service.State.FAILED, service.state());
        assertThat(service.transitionStates).containsExactly(Service.State.STARTING);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractIdleServiceTest.java

              }
            };
        assertEquals(0, service.startUpCalled);
        RuntimeException e =
            assertThrows(RuntimeException.class, () -> service.startAsync().awaitRunning());
        assertThat(e).hasCauseThat().isSameInstanceAs(exception);
        assertEquals(1, service.startUpCalled);
        assertEquals(Service.State.FAILED, service.state());
        assertThat(service.transitionStates).containsExactly(Service.State.STARTING);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

            assertThrows(UncheckedExecutionException.class, () -> cacheUnchecked.get(new Object()));
        assertThat(caughtUee).hasCauseThat().isSameInstanceAs(uee);
    
        caughtUee =
            assertThrows(
                UncheckedExecutionException.class, () -> cacheUnchecked.getUnchecked(new Object()));
        assertThat(caughtUee).hasCauseThat().isSameInstanceAs(uee);
    
        cacheUnchecked.refresh(new Object());
        checkLoggedCause(uee);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

        IllegalStateException expected =
            assertThrows(IllegalStateException.class, () -> service.awaitTerminated());
        executionThread.join();
        assertThat(expected).hasCauseThat().isEqualTo(service.failureCause());
        assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("kaboom!");
        assertTrue(service.shutDownCalled);
        assertEquals(Service.State.FAILED, service.state());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

        assertThat(expected).hasCauseThat().isSameInstanceAs(cause);
      }
    
      @GwtIncompatible // getCauseAs(Throwable, Class)
      public void testGetCauseAs() {
        SomeCheckedException cause = new SomeCheckedException();
        SomeChainingException thrown = new SomeChainingException(cause);
    
        assertThat(thrown).hasCauseThat().isSameInstanceAs(cause);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/FuturesGetDoneTest.java

        Exception failureCause = new Exception();
        ExecutionException expected =
            assertThrows(ExecutionException.class, () -> getDone(immediateFailedFuture(failureCause)));
        assertThat(expected).hasCauseThat().isEqualTo(failureCause);
      }
    
      public void testCancelled() throws ExecutionException {
        assertThrows(CancellationException.class, () -> getDone(immediateCancelledFuture()));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetDoneTest.java

        Exception failureCause = new Exception();
        ExecutionException expected =
            assertThrows(ExecutionException.class, () -> getDone(immediateFailedFuture(failureCause)));
        assertThat(expected).hasCauseThat().isEqualTo(failureCause);
      }
    
      public void testCancelled() throws ExecutionException {
        assertThrows(CancellationException.class, () -> getDone(immediateCancelledFuture()));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top