@Test void testConvert() { int startTimeout = (int) new StartTimeoutParameterConverter().convert("1000"); assertEquals(1000, startTimeout); }
@Override public Integer convert(Object value) { int startTimeout = super.convert(value); if (startTimeout < 0) { throw new SLException(Messages.ERROR_PARAMETER_1_MUST_NOT_BE_NEGATIVE, startTimeout, Variables.START_TIMEOUT.getName()); } return startTimeout; }
StartTimeoutParameterConverter extends IntegerParameterConverter { @Override public Integer convert(Object value) { int startTimeout = super.convert(value); if (startTimeout < 0) { throw new SLException(Messages.ERROR_PARAMETER_1_MUST_NOT_BE_NEGATIVE, startTimeout, Variables.START_TIMEOUT.getName()); } return startTimeout; } }
StartTimeoutParameterConverter extends IntegerParameterConverter { @Override public Integer convert(Object value) { int startTimeout = super.convert(value); if (startTimeout < 0) { throw new SLException(Messages.ERROR_PARAMETER_1_MUST_NOT_BE_NEGATIVE, startTimeout, Variables.START_TIMEOUT.getName()); } return startTimeout; }  }
StartTimeoutParameterConverter extends IntegerParameterConverter { @Override public Integer convert(Object value) { int startTimeout = super.convert(value); if (startTimeout < 0) { throw new SLException(Messages.ERROR_PARAMETER_1_MUST_NOT_BE_NEGATIVE, startTimeout, Variables.START_TIMEOUT.getName()); } return startTimeout; }  @Override Integer convert(Object value); }
StartTimeoutParameterConverter extends IntegerParameterConverter { @Override public Integer convert(Object value) { int startTimeout = super.convert(value); if (startTimeout < 0) { throw new SLException(Messages.ERROR_PARAMETER_1_MUST_NOT_BE_NEGATIVE, startTimeout, Variables.START_TIMEOUT.getName()); } return startTimeout; }  @Override Integer convert(Object value);  }