@Test void testAssertNonEmpty() { assertNonEmpty("some-text", "Reacts fine on some text"); testAssertFails(() -> assertNonEmpty(null, "Should fail on null"), "BuilderUtils.assertNonEmpty() should have failed on value null."); testAssertFails(() -> assertNonEmpty("", "Should fail on an empty string"), "BuilderUtils.assertNonEmpty() should have failed on an empty string."); }
public static void assertNonEmpty(String string, String exceptionMessage) { assertThat(string, s -> Objects.nonNull(s) && !EMPTY_STRING.equals(s), exceptionMessage); }
BuilderUtils { public static void assertNonEmpty(String string, String exceptionMessage) { assertThat(string, s -> Objects.nonNull(s) && !EMPTY_STRING.equals(s), exceptionMessage); } }
BuilderUtils { public static void assertNonEmpty(String string, String exceptionMessage) { assertThat(string, s -> Objects.nonNull(s) && !EMPTY_STRING.equals(s), exceptionMessage); } private  BuilderUtils(); }
BuilderUtils { public static void assertNonEmpty(String string, String exceptionMessage) { assertThat(string, s -> Objects.nonNull(s) && !EMPTY_STRING.equals(s), exceptionMessage); } private  BuilderUtils(); static void assertThat(T value,
                                      Predicate<T> assertion,
                                      String exceptionMessage); static void assertNonNull(T value, String exceptionMessage); static void assertPositive(int i, String exceptionMessage); static void assertPositive(long l, String exceptionMessage); static void assertStrictPositive(int i, String exceptionMessage); static void assertStrictPositive(long l, String exceptionMessage); static void assertNonEmpty(String string, String exceptionMessage); }
BuilderUtils { public static void assertNonEmpty(String string, String exceptionMessage) { assertThat(string, s -> Objects.nonNull(s) && !EMPTY_STRING.equals(s), exceptionMessage); } private  BuilderUtils(); static void assertThat(T value,
                                      Predicate<T> assertion,
                                      String exceptionMessage); static void assertNonNull(T value, String exceptionMessage); static void assertPositive(int i, String exceptionMessage); static void assertPositive(long l, String exceptionMessage); static void assertStrictPositive(int i, String exceptionMessage); static void assertStrictPositive(long l, String exceptionMessage); static void assertNonEmpty(String string, String exceptionMessage);  }