Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 56 for FAILURE (0.31 sec)

  1. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

        } catch (AssertionFailedError expected) {
          for (String message : expectedMessages) {
            assertThat(expected.getMessage()).contains(message);
          }
          return;
        }
        fail("expected failure not reported");
      }
    
      private class ForwardingRunnable implements Runnable {
    
        private final Runnable runnable;
    
        ForwardingRunnable(Runnable runnable) {
          this.runnable = runnable;
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      private final AtomicReference<Throwable> threadFailure = new AtomicReference<>(null);
    
      /**
       * Records an exception so that it can be rethrown later in the test harness thread, triggering a
       * test case failure. Only the first failure is recorded; subsequent calls to this method from
       * within the same test have no effect.
       */
      public void threadRecordFailure(Throwable t) {
        threadFailure.compareAndSet(null, t);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

        @Override
        protected void doStart() {
          notifyFailed(new IllegalStateException("start failure"));
        }
      }
    
      private static class FailRunService extends NoOpService {
        @Override
        protected void doStart() {
          super.doStart();
          notifyFailed(new IllegalStateException("run failure"));
        }
      }
    
      private static class FailStopService extends NoOpService {
        @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 02 17:20:27 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

      }
    
      public void testTrustedGetFailure_Failed() {
        SettableFuture<String> future = SettableFuture.create();
        Throwable failure = new Throwable();
        future.setException(failure);
        assertThat(future.tryInternalFastPathGetFailure()).isEqualTo(failure);
      }
    
      public void testTrustedGetFailure_NotCompleted() {
        SettableFuture<String> future = SettableFuture.create();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

            };
        AssertionFailedError actual = null;
        try {
          tester.test();
        } catch (AssertionFailedError e) {
          actual = e;
        }
        assertNotNull("verify() should be able to cause test failure", actual);
        assertTrue(
            "AssertionFailedError should have info about why test failed",
            actual.getCause().getMessage().contains(message));
      }
    
      public void testMissingException() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

          }
        }
    
        @Override
        public void failed(State from, Throwable failure) {
          ServiceManagerState state = this.state.get();
          if (state != null) {
            // Log before the transition, so that if the process exits in response to server failure,
            // there is a higher likelihood that the cause will be in the logs.
            boolean log = !(service instanceof NoOpService);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 30.5K bytes
    - Viewed (0)
  7. LICENSE

          result of this License or out of the use or inability to use the
          Work (including but not limited to damages for loss of goodwill,
          work stoppage, computer failure or malfunction, or any and all
          other commercial damages or losses), even if such Contributor
          has been advised of the possibility of such damages.
    
    Plain Text
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 22 18:59:39 GMT 2023
    - 11.1K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

    public class CollectionRetainAllTester<E> extends AbstractCollectionTester<E> {
    
      /** A collection of elements to retain, along with a description for use in failure messages. */
      private class Target {
        private final Collection<E> toRetain;
        private final String description;
    
        private Target(Collection<E> toRetain, String description) {
          this.toRetain = toRetain;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

     * hint, so this technique may fail at the whim of the JDK implementation, for example if a user
     * specified the JVM flag {@code -XX:+DisableExplicitGC}. But in practice, it works very well for
     * ordinary tests.
     *
     * <p>Failure of the expected event to occur within an implementation-defined "reasonable" time
     * period or an interrupt while waiting for the expected event will result in a {@link
     * RuntimeException}.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

                logger
                    .get()
                    .log(
                        Level.WARNING,
                        "Error while attempting to shut down the service after failure.",
                        ignored);
              }
              notifyFailed(t);
              // requireNonNull is safe now, just as it was above.
              requireNonNull(runningTask).cancel(false); // prevent future invocations.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 25.8K bytes
    - Viewed (0)
Back to top