Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for assertRun (0.28 sec)

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

        future.setFuture(delegate);
        future.addListener(inBetween, directExecutor());
        delegate.set(1);
        future.addListener(after, directExecutor());
    
        before.assertRun();
        inBetween.assertRun();
        after.assertRun();
      }
    
      public void testListenLaterSetAsynchronouslyLaterDelegateFailed() {
        CountingRunnable before = new CountingRunnable();
        CountingRunnable inBetween = new CountingRunnable();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

        future.setFuture(delegate);
        future.addListener(inBetween, directExecutor());
        delegate.set(1);
        future.addListener(after, directExecutor());
    
        before.assertRun();
        inBetween.assertRun();
        after.assertRun();
      }
    
      public void testListenLaterSetAsynchronouslyLaterDelegateFailed() {
        CountingRunnable before = new CountingRunnable();
        CountingRunnable inBetween = new CountingRunnable();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

       * the call to {@code contains(null)} is permitted to throw a {@code NullPointerException}.
       *
       * @param message message to use upon assertion failure
       */
      protected void expectNullKeyMissingWhenNullKeysUnsupported(String message) {
        try {
          assertFalse(message, getMap().containsKey(null));
        } catch (NullPointerException tolerated) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java

       * Equivalent to {@link #expectMissing(Object[]) expectMissing}{@code (null)} except that the call
       * to {@code contains(null)} is permitted to throw a {@code NullPointerException}.
       *
       * @param message message to use upon assertion failure
       */
      protected void expectNullMissingWhenNullUnsupported(String message) {
        try {
          assertFalse(message, actualContents().contains(null));
        } catch (NullPointerException tolerated) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/BaseEncodingTest.java

        // We use this somewhat weird pattern with an enum for each assertion we want to make as a way
        // of dealing with the fact that one of the assertions is @GwtIncompatible but we don't want to
        // have to have duplicate @GwtIncompatible test methods just to make that assertion.
        for (AssertFailsToDecodeStrategy strategy : AssertFailsToDecodeStrategy.values()) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Aug 25 16:34:08 GMT 2022
    - 24.6K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

          assertTrue(e.getMessage().contains("toString representation"));
        }
      }
    
      private static void assertErrorMessage(Throwable e, String message) {
        // TODO(kevinb): use a Truth assertion here
        if (!e.getMessage().contains(message)) {
          fail("expected <" + e.getMessage() + "> to contain <" + message + ">");
        }
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

     *       other code to use these forms too. Only the most typically used JUnit assertion methods are
     *       defined this way, but enough to live with.
     *   <li>If you override {@link #setUp} or {@link #tearDown}, make sure to invoke {@code
     *       super.setUp} and {@code super.tearDown} within them. These methods are used to clear and
     *       check for thread assertion failures.
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

     *
     * @param <K> the type of keys used by the maps under test
     * @param <V> the type of mapped values used the maps under test
     * @author George van den Driessche
     */
    // TODO: Descriptive assertion messages, with hints as to probable fixes.
    // TODO: Add another constructor parameter indicating whether the class under test is ordered, and
    // check the order if so.
    // TODO: Refactor to share code with SetTestBuilder etc.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

         * iterator's next element and pass it to the reference iterator through this method so it can
         * return the same element. This enables the assertion to pass and the reference iterator to
         * properly update its state.
         */
        void promoteToNext(E e) {
          if (nextElements.remove(e)) {
            nextElements.push(e);
          } else {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/SubtypeTester.java

      /** Annotates a public method that declares subtype assertion. */
      @RequiredModifiers(Modifier.PUBLIC)
      @Retention(RetentionPolicy.RUNTIME)
      @Target(ElementType.METHOD)
      @interface TestSubtype {
        /** Suppresses the assertion on {@link TypeToken#getSubtype}. */
        boolean suppressGetSubtype() default false;
    
        /** Suppresses the assertion on {@link TypeToken#getSupertype}. */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.1K bytes
    - Viewed (0)
Back to top