StringUtils { public static boolean isEmpty(final String value) { if (value == null) { return true; } return (value.trim().isEmpty()); }  static String shellQuote(final String s, final char quoteCh); @Deprecated static String join(final List<String> list, final String delimiter); static String join(final Collection<String> list, final String delimiter); static String join2(final Collection<String> list, final String delimiter); static boolean isFromBrowser(final String userAgent); static boolean isEmpty(final String value); static final char SINGLE_QUOTE; static final char DOUBLE_QUOTE; }
@Test public void testIsEmpty() { Assert.assertTrue(StringUtils.isEmpty(null)); Assert.assertTrue(StringUtils.isEmpty("")); Assert.assertTrue(StringUtils.isEmpty(" ")); Assert.assertFalse(StringUtils.isEmpty("spark,hive,pigLi")); }