@Test public final void testCheckParamaterNullOnlyStringStringArray() { try { ParametersChecker.checkParameterNullOnly("test message", (String[]) null); fail(ResourcesPublicUtilTest.SHOULD_RAIZED_ILLEGAL_ARGUMENT_EXCEPTION); } catch (final IllegalArgumentException e) { } try { ParametersChecker.checkParameterNullOnly("test message", null, "notnull"); fail(ResourcesPublicUtilTest.SHOULD_RAIZED_ILLEGAL_ARGUMENT_EXCEPTION); } catch (final IllegalArgumentException e) { } try { ParametersChecker.checkParameterNullOnly("test message", "notnull", null); fail(ResourcesPublicUtilTest.SHOULD_RAIZED_ILLEGAL_ARGUMENT_EXCEPTION); } catch (final IllegalArgumentException e) { } try { ParametersChecker.checkParameterNullOnly("test message", "", "notnull"); } catch (final IllegalArgumentException e) { fail(ResourcesPublicUtilTest.SHOULD_NOT_RAIZED_ILLEGAL_ARGUMENT_EXCEPTION); } try { ParametersChecker.checkParameterNullOnly("test message", "notnull", ""); } catch (final IllegalArgumentException e) { fail(ResourcesPublicUtilTest.SHOULD_NOT_RAIZED_ILLEGAL_ARGUMENT_EXCEPTION); } try { ParametersChecker.checkParameterNullOnly("test message", "notNull", "notnull"); ParametersChecker.checkParameterNullOnly("test message", "notnull"); } catch (final IllegalArgumentException e) { fail(ResourcesPublicUtilTest.SHOULD_NOT_RAIZED_ILLEGAL_ARGUMENT_EXCEPTION); } }
public static void checkParameterNullOnly(String errorMessage, String... parameters) { if (parameters == null) { throw new IllegalArgumentException(errorMessage); } for (final String parameter : parameters) { if (parameter == null) { throw new IllegalArgumentException(errorMessage); } } }
ParametersChecker { public static void checkParameterNullOnly(String errorMessage, String... parameters) { if (parameters == null) { throw new IllegalArgumentException(errorMessage); } for (final String parameter : parameters) { if (parameter == null) { throw new IllegalArgumentException(errorMessage); } } } }
ParametersChecker { public static void checkParameterNullOnly(String errorMessage, String... parameters) { if (parameters == null) { throw new IllegalArgumentException(errorMessage); } for (final String parameter : parameters) { if (parameter == null) { throw new IllegalArgumentException(errorMessage); } } } private  ParametersChecker(); }
ParametersChecker { public static void checkParameterNullOnly(String errorMessage, String... parameters) { if (parameters == null) { throw new IllegalArgumentException(errorMessage); } for (final String parameter : parameters) { if (parameter == null) { throw new IllegalArgumentException(errorMessage); } } } private  ParametersChecker(); static void checkParameter(String errorMessage, String... parameters); static void checkParameterDefault(String errorMessage, String... parameters); static boolean isNotEmpty(String... parameters); static void checkParameterDefault(String errorMessage, Object... parameters); static void checkParameterNullOnly(String errorMessage, String... parameters); static void checkParameter(String errorMessage, Object... parameters); static void checkDateParam(String errorMessage, String date); static void checkValue(String name, long variable, long minValue); static void checkNullOrEmptyParameter(T key, String value,
        Set<T> mandatories); static void checkNullOrEmptyParameters(Map<T, String> parameters,
        Set<T> mandatories); @SuppressWarnings({"rawtypes", "unchecked"}) static void checkNullOrEmptyParameters(T parameters); }
ParametersChecker { public static void checkParameterNullOnly(String errorMessage, String... parameters) { if (parameters == null) { throw new IllegalArgumentException(errorMessage); } for (final String parameter : parameters) { if (parameter == null) { throw new IllegalArgumentException(errorMessage); } } } private  ParametersChecker(); static void checkParameter(String errorMessage, String... parameters); static void checkParameterDefault(String errorMessage, String... parameters); static boolean isNotEmpty(String... parameters); static void checkParameterDefault(String errorMessage, Object... parameters); static void checkParameterNullOnly(String errorMessage, String... parameters); static void checkParameter(String errorMessage, Object... parameters); static void checkDateParam(String errorMessage, String date); static void checkValue(String name, long variable, long minValue); static void checkNullOrEmptyParameter(T key, String value,
        Set<T> mandatories); static void checkNullOrEmptyParameters(Map<T, String> parameters,
        Set<T> mandatories); @SuppressWarnings({"rawtypes", "unchecked"}) static void checkNullOrEmptyParameters(T parameters);  }