@Test public final void testCheckValue() { try { ParametersChecker.checkValue("test", 1, 2); fail(ResourcesPublicUtilTest.SHOULD_RAIZED_ILLEGAL_ARGUMENT_EXCEPTION); } catch (final IllegalArgumentException e) { } ParametersChecker.checkValue("test", 1, 1); ParametersChecker.checkValue("test", 1, 0); }
public static void checkValue(String name, long variable, long minValue) { if (variable < minValue) { throw new IllegalArgumentException("Parameter " + name + " is less than " + minValue); } }
ParametersChecker { public static void checkValue(String name, long variable, long minValue) { if (variable < minValue) { throw new IllegalArgumentException("Parameter " + name + " is less than " + minValue); } } }
ParametersChecker { public static void checkValue(String name, long variable, long minValue) { if (variable < minValue) { throw new IllegalArgumentException("Parameter " + name + " is less than " + minValue); } } private  ParametersChecker(); }
ParametersChecker { public static void checkValue(String name, long variable, long minValue) { if (variable < minValue) { throw new IllegalArgumentException("Parameter " + name + " is less than " + minValue); } } 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 checkValue(String name, long variable, long minValue) { if (variable < minValue) { throw new IllegalArgumentException("Parameter " + name + " is less than " + minValue); } } 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);  }