Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 122 for Message (0.21 sec)

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

          super(message);
        }
    
        public ExceptionWithManyConstructorsButOnlyOneThrowable(
            String message, String a1, String a2, String a3) {
          super(message);
        }
    
        public ExceptionWithManyConstructorsButOnlyOneThrowable(String message, Throwable antecedent) {
          super(message);
          this.antecedent = antecedent;
        }
    
    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)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

      }
    
      private void expectReturnsTrue(Target target) {
        String message = Platform.format("retainAll(%s) should return true", target);
        assertTrue(message, collection.retainAll(target.toRetain));
      }
    
      private void expectReturnsFalse(Target target) {
        String message = Platform.format("retainAll(%s) should return false", target);
        assertFalse(message, collection.retainAll(target.toRetain));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 10.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) {
          // 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

       * 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) {
          // 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. android/guava-tests/test/com/google/common/base/VerifyTest.java

        }
      }
    
      public void testVerify_simpleMessage_success() {
        verify(true, "message");
      }
    
      public void testVerify_simpleMessage_failure() {
        try {
          verify(false, "message");
          fail();
        } catch (VerifyException expected) {
          assertThat(expected).hasMessageThat().isEqualTo("message");
        }
      }
    
      public void testVerify_complexMessage_success() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu May 04 09:41:29 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Preconditions.java

       * @param errorMessageTemplate a template for the exception message should the check fail. The
       *     message is formed by replacing each {@code %s} placeholder in the template with an
       *     argument. These are matched by position - the first {@code %s} gets {@code
       *     errorMessageArgs[0]}, etc. Unmatched arguments will be appended to the formatted message in
       *     square braces. Unmatched placeholders will be left as-is.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

      }
    
      private void expectReturnsTrue(Target target) {
        String message = Platform.format("retainAll(%s) should return true", target);
        assertTrue(message, collection.retainAll(target.toRetain));
      }
    
      private void expectReturnsFalse(Target target) {
        String message = Platform.format("retainAll(%s) should return false", target);
        assertFalse(message, collection.retainAll(target.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)
  8. guava/src/com/google/common/base/Verify.java

      }
    
      /**
       * Ensures that {@code expression} is {@code true}, throwing a {@code VerifyException} with a
       * custom message otherwise.
       *
       * @param expression a boolean expression
       * @param errorMessageTemplate a template for the exception message should the check fail. The
       *     message is formed by replacing each {@code %s} placeholder in the template with an
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon May 17 14:07:47 GMT 2021
    - 18.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

        if (localInputFuture != null) {
          String message = "inputFuture=[" + localInputFuture + "]";
          if (localTimer != null) {
            long delay = localTimer.getDelay(TimeUnit.MILLISECONDS);
            // Negative delays look confusing in an error message
            if (delay > 0) {
              message += ", remaining delay=[" + delay + " ms]";
            }
          }
          return message;
        }
        return null;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  10. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

        }
      }
    
      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 + ">");
        }
      }
    
      /**
       * Test class with valid equals and hashCode methods. Testers created with instances of this class
    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)
Back to top