StringUtils { public static boolean isEmpty(CharSequence cs) { return cs == null || cs.length() == 0; } private  StringUtils(); static boolean isEmpty(CharSequence cs); static boolean isNotEmpty(CharSequence cs); static boolean isNotEmptyTrimmed(String str); static String trim(String str); static String getStringOrEmpty(String inputString); static String getStringOrDefault(String inputString, String def); static String replaceWildcardConfigs(String contentWithWildcards, Map<String, Object> properties);  }
@Test public void testIsEmpty(TestContext context) { context.assertTrue(StringUtils.isEmpty(nullText)); context.assertTrue(StringUtils.isEmpty("")); context.assertFalse(StringUtils.isEmpty(" ")); context.assertFalse(StringUtils.isEmpty(text)); context.assertFalse(StringUtils.isEmpty(" " + text + " ")); }