- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for VerifyException (0.25 sec)
-
guava/src/com/google/common/base/VerifyException.java
@GwtCompatible @ElementTypesAreNonnullByDefault public class VerifyException extends RuntimeException { /** Constructs a {@code VerifyException} with no message. */ public VerifyException() {} /** Constructs a {@code VerifyException} with the message {@code message}. */ public VerifyException(@CheckForNull String message) { super(message); } /**
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon May 17 14:07:47 GMT 2021 - 1.8K bytes - Viewed (0) -
android/guava/src/com/google/common/base/VerifyException.java
@GwtCompatible @ElementTypesAreNonnullByDefault public class VerifyException extends RuntimeException { /** Constructs a {@code VerifyException} with no message. */ public VerifyException() {} /** Constructs a {@code VerifyException} with the message {@code message}. */ public VerifyException(@CheckForNull String message) { super(message); } /**
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon May 17 14:07:47 GMT 2021 - 1.8K bytes - Viewed (0) -
guava/src/com/google/common/base/Verify.java
/** * Ensures that {@code expression} is {@code true}, throwing a {@code VerifyException} with no * message otherwise. * * @throws VerifyException if {@code expression} is {@code false} * @see Preconditions#checkState Preconditions.checkState() */ public static void verify(boolean expression) { if (!expression) { throw new VerifyException(); } } /**
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) -
android/guava-tests/test/com/google/common/base/VerifyTest.java
try { verify(false); fail(); } catch (VerifyException expected) { } } 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"); }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu May 04 09:41:29 GMT 2023 - 3.2K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Verify.java
/** * Ensures that {@code expression} is {@code true}, throwing a {@code VerifyException} with no * message otherwise. * * @throws VerifyException if {@code expression} is {@code false} * @see Preconditions#checkState Preconditions.checkState() */ public static void verify(boolean expression) { if (!expression) { throw new VerifyException(); } } /**
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon May 17 14:07:47 GMT 2021 - 18.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/VerifyTest.java
try { verify(false); fail(); } catch (VerifyException expected) { } } 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"); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu May 04 09:41:29 GMT 2023 - 3.2K bytes - Viewed (0)