StringUtils { public static boolean isNotEmptyTrimmed(String str) { return !StringUtils.isEmpty(trim(str)); } 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 testIsNotEmptyTrimmed(TestContext context) { context.assertFalse(StringUtils.isNotEmptyTrimmed(nullText)); context.assertFalse(StringUtils.isNotEmptyTrimmed("")); context.assertFalse(StringUtils.isNotEmptyTrimmed(" ")); context.assertTrue(StringUtils.isNotEmptyTrimmed(text)); context.assertTrue(StringUtils.isNotEmptyTrimmed(" " + text + " ")); }