TextUtils { public static boolean isEmpty(CharSequence str) { return str == null || str.length() == 0; } private  TextUtils(); static boolean isEmpty(CharSequence str); static String join(CharSequence delimiter, Object[] tokens); static String formatCoordinate(double coordinate); static String formatCoordinate(double coordinate, int precision); @Deprecated static String formatRadiuses(double[] radiuses); @Deprecated static String formatBearing(List<Double[]> bearings); @Deprecated static String formatDistributions(List<Integer[]> distributions); @Deprecated static String formatApproaches(String[] approaches); @Deprecated static String formatWaypointNames(String[] waypointNames);  }
@Test public void isEmptyTest() throws Exception { String string = null; assertTrue(TextUtils.isEmpty(string)); string = ""; assertTrue(TextUtils.isEmpty(string)); }