@Test void testIsTrue_Fail() { assertThrows(IllegalArgumentException.class, () -> Assert.isTrue(false, () -> "Hello")); }
public static void isTrue(boolean expression, Supplier<String> messageSupplier) { if (!expression) { throw new IllegalArgumentException(messageSupplier.get()); } }
Assert { public static void isTrue(boolean expression, Supplier<String> messageSupplier) { if (!expression) { throw new IllegalArgumentException(messageSupplier.get()); } } }
Assert { public static void isTrue(boolean expression, Supplier<String> messageSupplier) { if (!expression) { throw new IllegalArgumentException(messageSupplier.get()); } } private  Assert(); }
Assert { public static void isTrue(boolean expression, Supplier<String> messageSupplier) { if (!expression) { throw new IllegalArgumentException(messageSupplier.get()); } } private  Assert(); static void state(boolean state, Supplier<String> messageSupplier); static void isTrue(boolean expression, Supplier<String> messageSupplier); static void isFalse(boolean expression, Supplier<String> messageSupplier); static void notNull(Object value, Supplier<String> messageSupplier); static T nonNull(T value, Supplier<String> messageSupplier); @SuppressWarnings("RedundantThrows") // Throws signature required for correct compilation static void assertThat(T value,
                                                           Predicate<T> assertion,
                                                           Supplier<? extends X> exceptionSupplier); static void assertNonNull(T value,
                                                              Supplier<? extends X> exceptionSupplier); }
Assert { public static void isTrue(boolean expression, Supplier<String> messageSupplier) { if (!expression) { throw new IllegalArgumentException(messageSupplier.get()); } } private  Assert(); static void state(boolean state, Supplier<String> messageSupplier); static void isTrue(boolean expression, Supplier<String> messageSupplier); static void isFalse(boolean expression, Supplier<String> messageSupplier); static void notNull(Object value, Supplier<String> messageSupplier); static T nonNull(T value, Supplier<String> messageSupplier); @SuppressWarnings("RedundantThrows") // Throws signature required for correct compilation static void assertThat(T value,
                                                           Predicate<T> assertion,
                                                           Supplier<? extends X> exceptionSupplier); static void assertNonNull(T value,
                                                              Supplier<? extends X> exceptionSupplier);  }