@Test void getInitParameterAsStrictlyPositiveIntegerShouldThrowOnZero() { assertThatThrownBy(() -> MailetUtil.getInitParameterAsStrictlyPositiveInteger("0")) .isInstanceOf(MessagingException.class); }
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);  }