Assert { public static void hasText(String text, String message) { if (StringUtils.isBlank(text)) { throw new IllegalArgumentException(message); } } private  Assert(); static void notEmpty(Collection<?> collection, String message); static void isTrue(boolean expression, String message); static void hasText(String text, String message); static void notNull(Object object, String message);  }
@Test void testHasText() { gov.nyc.doitt.gis.geoclient.parser.util.Assert.hasText(" o ", "bar"); }
@Test void testHasText_null() { assertThrows(IllegalArgumentException.class, () -> gov.nyc.doitt.gis.geoclient.parser.util.Assert.hasText((String)null, "bar"), "bar"); }
@Test void testHasText_empty() { assertThrows(IllegalArgumentException.class, () -> gov.nyc.doitt.gis.geoclient.parser.util.Assert.hasText("", "bar"), "bar"); }
@Test void testHasText_whitespaceOnly() { assertThrows(IllegalArgumentException.class, () -> gov.nyc.doitt.gis.geoclient.parser.util.Assert.hasText(" ", "bar"), "bar"); }