@Test public void utilsEmptyStringTestNullNoMessage() { thrown.expect(NullPointerException.class); ConsistencyUtils.checkEmptyString(null); }
public static String checkEmptyString(String object, String message) { object = checkNotNull(object, message); if (object.trim() == "") { throw new NullPointerException(message); } return object; }
ConsistencyUtils { public static String checkEmptyString(String object, String message) { object = checkNotNull(object, message); if (object.trim() == "") { throw new NullPointerException(message); } return object; } }
ConsistencyUtils { public static String checkEmptyString(String object, String message) { object = checkNotNull(object, message); if (object.trim() == "") { throw new NullPointerException(message); } return object; } private  ConsistencyUtils(); }
ConsistencyUtils { public static String checkEmptyString(String object, String message) { object = checkNotNull(object, message); if (object.trim() == "") { throw new NullPointerException(message); } return object; } private  ConsistencyUtils(); static T checkNotNull(T object); static T checkNotNull(T object, String message); static String checkEmptyString(String object, String message); static String checkEmptyString(String object); static T checkInstance(Object obj, Class<T> type); static Collection<T> checkNotEmpty(Collection<T> container); static Collection<T> containsNoNulls(Collection<T> container); }
ConsistencyUtils { public static String checkEmptyString(String object, String message) { object = checkNotNull(object, message); if (object.trim() == "") { throw new NullPointerException(message); } return object; } private  ConsistencyUtils(); static T checkNotNull(T object); static T checkNotNull(T object, String message); static String checkEmptyString(String object, String message); static String checkEmptyString(String object); static T checkInstance(Object obj, Class<T> type); static Collection<T> checkNotEmpty(Collection<T> container); static Collection<T> containsNoNulls(Collection<T> container);  }