@Test public void testArgumentNotNegativeValue() { long argumentValue = 5; String argumentName = "argumentValue"; boolean isValid = true; try { RetryHelper.argumentNotNegativeValue(argumentValue, argumentName); } catch (ConfigurationException nve) { isValid = false; } Assert.assertTrue(isValid); }
public static void argumentNotNegativeValue(long argumentValue, String argumentName) throws ConfigurationException { if (argumentValue < 0) { throw new ConfigurationException("The value for argument name [" + argumentName + "] is negative [" + argumentValue + "]. Please check the configuration."); } }
RetryHelper { public static void argumentNotNegativeValue(long argumentValue, String argumentName) throws ConfigurationException { if (argumentValue < 0) { throw new ConfigurationException("The value for argument name [" + argumentName + "] is negative [" + argumentValue + "]. Please check the configuration."); } } }
RetryHelper { public static void argumentNotNegativeValue(long argumentValue, String argumentName) throws ConfigurationException { if (argumentValue < 0) { throw new ConfigurationException("The value for argument name [" + argumentName + "] is negative [" + argumentValue + "]. Please check the configuration."); } } private  RetryHelper(); }
RetryHelper { public static void argumentNotNegativeValue(long argumentValue, String argumentName) throws ConfigurationException { if (argumentValue < 0) { throw new ConfigurationException("The value for argument name [" + argumentName + "] is negative [" + argumentValue + "]. Please check the configuration."); } } private  RetryHelper(); static void argumentNotNegativeValue(long argumentValue, String argumentName); }
RetryHelper { public static void argumentNotNegativeValue(long argumentValue, String argumentName) throws ConfigurationException { if (argumentValue < 0) { throw new ConfigurationException("The value for argument name [" + argumentName + "] is negative [" + argumentValue + "]. Please check the configuration."); } } private  RetryHelper(); static void argumentNotNegativeValue(long argumentValue, String argumentName);  }