@SuppressWarnings("static-access") @Test public void isObjectEmpty2() { NotificationUtil notificationUtil = mock(NotificationUtil.class); assertTrue(notificationUtil.isObjectEmpty(null)); }
public static boolean isObjectEmpty(Object object) { if (object == null) return true; else if (object instanceof String) { if (((String) object).trim().length() == 0) { return true; } } else if (object instanceof Collection) { return isCollectionEmpty((Collection<?>) object); } return false; }
NotificationUtil { public static boolean isObjectEmpty(Object object) { if (object == null) return true; else if (object instanceof String) { if (((String) object).trim().length() == 0) { return true; } } else if (object instanceof Collection) { return isCollectionEmpty((Collection<?>) object); } return false; } }
NotificationUtil { public static boolean isObjectEmpty(Object object) { if (object == null) return true; else if (object instanceof String) { if (((String) object).trim().length() == 0) { return true; } } else if (object instanceof Collection) { return isCollectionEmpty((Collection<?>) object); } return false; } private  NotificationUtil(); }
NotificationUtil { public static boolean isObjectEmpty(Object object) { if (object == null) return true; else if (object instanceof String) { if (((String) object).trim().length() == 0) { return true; } } else if (object instanceof Collection) { return isCollectionEmpty((Collection<?>) object); } return false; } private  NotificationUtil(); static boolean isObjectEmpty(Object object); }
NotificationUtil { public static boolean isObjectEmpty(Object object) { if (object == null) return true; else if (object instanceof String) { if (((String) object).trim().length() == 0) { return true; } } else if (object instanceof Collection) { return isCollectionEmpty((Collection<?>) object); } return false; } private  NotificationUtil(); static boolean isObjectEmpty(Object object);  }