@Test public void testValidExpireTime() { boolean exception = false; POP3BeforeSMTPHandler handler = new POP3BeforeSMTPHandler(); setupMockedSMTPSession(); try { handler.setExpireTime("1 hour"); } catch (NumberFormatException e) { exception = true; } assertThat(exception).isFalse(); }
public void setExpireTime(String rawExpireTime) { if (rawExpireTime != null) { this.expireTime = DurationParser.parse(rawExpireTime); } }
POP3BeforeSMTPHandler implements ConnectHandler<SMTPSession>, Configurable { public void setExpireTime(String rawExpireTime) { if (rawExpireTime != null) { this.expireTime = DurationParser.parse(rawExpireTime); } } }
POP3BeforeSMTPHandler implements ConnectHandler<SMTPSession>, Configurable { public void setExpireTime(String rawExpireTime) { if (rawExpireTime != null) { this.expireTime = DurationParser.parse(rawExpireTime); } }  }
POP3BeforeSMTPHandler implements ConnectHandler<SMTPSession>, Configurable { public void setExpireTime(String rawExpireTime) { if (rawExpireTime != null) { this.expireTime = DurationParser.parse(rawExpireTime); } }  @Override void configure(HierarchicalConfiguration<ImmutableNode> config); void setExpireTime(String rawExpireTime); @Override Response onConnect(SMTPSession session); }
POP3BeforeSMTPHandler implements ConnectHandler<SMTPSession>, Configurable { public void setExpireTime(String rawExpireTime) { if (rawExpireTime != null) { this.expireTime = DurationParser.parse(rawExpireTime); } }  @Override void configure(HierarchicalConfiguration<ImmutableNode> config); void setExpireTime(String rawExpireTime); @Override Response onConnect(SMTPSession session);  }