@Test void getInitParameterAsStrictlyPositiveIntegerWithDefaultValueShouldParseCorrectValue() throws Exception { assertThat(MailetUtil.getInitParameterAsStrictlyPositiveInteger("1", DEFAULT_VALUE)) .isEqualTo(1); }
public static int getInitParameterAsStrictlyPositiveInteger(String condition, int defaultValue) throws MessagingException { String defaultStringValue = String.valueOf(defaultValue); return getInitParameterAsStrictlyPositiveInteger(condition, Optional.of(defaultStringValue)); }
MailetUtil { public static int getInitParameterAsStrictlyPositiveInteger(String condition, int defaultValue) throws MessagingException { String defaultStringValue = String.valueOf(defaultValue); return getInitParameterAsStrictlyPositiveInteger(condition, Optional.of(defaultStringValue)); } }
MailetUtil { public static int getInitParameterAsStrictlyPositiveInteger(String condition, int defaultValue) throws MessagingException { String defaultStringValue = String.valueOf(defaultValue); return getInitParameterAsStrictlyPositiveInteger(condition, Optional.of(defaultStringValue)); }  }
MailetUtil { public static int getInitParameterAsStrictlyPositiveInteger(String condition, int defaultValue) throws MessagingException { String defaultStringValue = String.valueOf(defaultValue); return getInitParameterAsStrictlyPositiveInteger(condition, Optional.of(defaultStringValue)); }  static Optional<Boolean> getInitParameter(MailetConfig config, String name); static int getInitParameterAsStrictlyPositiveInteger(String condition, int defaultValue); static int getInitParameterAsStrictlyPositiveInteger(String condition); }
MailetUtil { public static int getInitParameterAsStrictlyPositiveInteger(String condition, int defaultValue) throws MessagingException { String defaultStringValue = String.valueOf(defaultValue); return getInitParameterAsStrictlyPositiveInteger(condition, Optional.of(defaultStringValue)); }  static Optional<Boolean> getInitParameter(MailetConfig config, String name); static int getInitParameterAsStrictlyPositiveInteger(String condition, int defaultValue); static int getInitParameterAsStrictlyPositiveInteger(String condition);  }