@Test public void testGetValidIntValueBellowMinValue() { setExpectedExceptions(RuntimeException.class, exception, "The provided value: -1 is not within valid range. " + "See operation inputs description section for details."); getValidIntValue("-1", 0, 65535, 80); }
public static int getValidIntValue(String input, Integer minAllowed, Integer maxAllowed, Integer defaultValue) { return isBlank(input) ? defaultValue : maxAllowed == null ? getIntegerAboveMinimum(input, minAllowed) : getIntegerWithinValidRange(input, minAllowed, maxAllowed); }
InputsUtil { public static int getValidIntValue(String input, Integer minAllowed, Integer maxAllowed, Integer defaultValue) { return isBlank(input) ? defaultValue : maxAllowed == null ? getIntegerAboveMinimum(input, minAllowed) : getIntegerWithinValidRange(input, minAllowed, maxAllowed); } }
InputsUtil { public static int getValidIntValue(String input, Integer minAllowed, Integer maxAllowed, Integer defaultValue) { return isBlank(input) ? defaultValue : maxAllowed == null ? getIntegerAboveMinimum(input, minAllowed) : getIntegerWithinValidRange(input, minAllowed, maxAllowed); } private  InputsUtil(); }
InputsUtil { public static int getValidIntValue(String input, Integer minAllowed, Integer maxAllowed, Integer defaultValue) { return isBlank(input) ? defaultValue : maxAllowed == null ? getIntegerAboveMinimum(input, minAllowed) : getIntegerWithinValidRange(input, minAllowed, maxAllowed); } private  InputsUtil(); static HttpClientInputs getHttpClientInputs(String username, String password, String proxyHost, String proxyPort,
                                                       String proxyUsername, String proxyPassword, String trustAllRoots,
                                                       String x509HostnameVerifier, String trustKeystore, String trustPassword,
                                                       String keystore, String keystorePassword, String connectTimeout,
                                                       String socketTimeout, String useCookies, String keepAlive, String method); static String buildUrl(InputsWrapper wrapper); static String appendTo(String prefix, String suffix, String action); static String getPayloadString(Map<String, String> payloadMap, String separator, String suffix, boolean deleteLastChar); static int getValidPort(String input); static String getEnabledString(String input, boolean enforcedBoolean); static boolean getEnforcedBooleanCondition(String input, boolean enforcedBoolean); static int getValidIntValue(String input, Integer minAllowed, Integer maxAllowed, Integer defaultValue); static void setOptionalMapEntry(Map<String, String> inputMap, String key, String value, boolean condition); static String getEnumValidValuesString(Class<T> inputEnum); static String getValidInternalNodeIpAddress(String input); static void validateNotBothBlankInputs(String value1, String value2, String name1, String name2); static void validateRebalancingNodesPayloadInputs(String input, String delimiter); static boolean areBothValuesPresent(String value1, String value2); }
InputsUtil { public static int getValidIntValue(String input, Integer minAllowed, Integer maxAllowed, Integer defaultValue) { return isBlank(input) ? defaultValue : maxAllowed == null ? getIntegerAboveMinimum(input, minAllowed) : getIntegerWithinValidRange(input, minAllowed, maxAllowed); } private  InputsUtil(); static HttpClientInputs getHttpClientInputs(String username, String password, String proxyHost, String proxyPort,
                                                       String proxyUsername, String proxyPassword, String trustAllRoots,
                                                       String x509HostnameVerifier, String trustKeystore, String trustPassword,
                                                       String keystore, String keystorePassword, String connectTimeout,
                                                       String socketTimeout, String useCookies, String keepAlive, String method); static String buildUrl(InputsWrapper wrapper); static String appendTo(String prefix, String suffix, String action); static String getPayloadString(Map<String, String> payloadMap, String separator, String suffix, boolean deleteLastChar); static int getValidPort(String input); static String getEnabledString(String input, boolean enforcedBoolean); static boolean getEnforcedBooleanCondition(String input, boolean enforcedBoolean); static int getValidIntValue(String input, Integer minAllowed, Integer maxAllowed, Integer defaultValue); static void setOptionalMapEntry(Map<String, String> inputMap, String key, String value, boolean condition); static String getEnumValidValuesString(Class<T> inputEnum); static String getValidInternalNodeIpAddress(String input); static void validateNotBothBlankInputs(String value1, String value2, String name1, String name2); static void validateRebalancingNodesPayloadInputs(String input, String delimiter); static boolean areBothValuesPresent(String value1, String value2);  }