@Test void discardSuccessStatusesFalseWhenDefinedInMailConfig() { when(mailConfigSource.getProperty("discardSuccessStatuses")).thenReturn(0); assertEquals(false, this.configuration.discardSuccessStatuses()); }
@Override public boolean discardSuccessStatuses() { Integer discardSuccessStatuses = this.mailConfigSource.getProperty(DISCARD_SUCCESS_STATUSES); if (discardSuccessStatuses == null) { discardSuccessStatuses = this.xwikiPropertiesSource.getProperty(PREFIX + DISCARD_SUCCESS_STATUSES, 1); } return (discardSuccessStatuses == 1); }
DefaultMailStorageConfiguration implements MailStorageConfiguration { @Override public boolean discardSuccessStatuses() { Integer discardSuccessStatuses = this.mailConfigSource.getProperty(DISCARD_SUCCESS_STATUSES); if (discardSuccessStatuses == null) { discardSuccessStatuses = this.xwikiPropertiesSource.getProperty(PREFIX + DISCARD_SUCCESS_STATUSES, 1); } return (discardSuccessStatuses == 1); } }
DefaultMailStorageConfiguration implements MailStorageConfiguration { @Override public boolean discardSuccessStatuses() { Integer discardSuccessStatuses = this.mailConfigSource.getProperty(DISCARD_SUCCESS_STATUSES); if (discardSuccessStatuses == null) { discardSuccessStatuses = this.xwikiPropertiesSource.getProperty(PREFIX + DISCARD_SUCCESS_STATUSES, 1); } return (discardSuccessStatuses == 1); }  }
DefaultMailStorageConfiguration implements MailStorageConfiguration { @Override public boolean discardSuccessStatuses() { Integer discardSuccessStatuses = this.mailConfigSource.getProperty(DISCARD_SUCCESS_STATUSES); if (discardSuccessStatuses == null) { discardSuccessStatuses = this.xwikiPropertiesSource.getProperty(PREFIX + DISCARD_SUCCESS_STATUSES, 1); } return (discardSuccessStatuses == 1); }  @Override boolean discardSuccessStatuses(); @Override boolean resendAutomaticallyAtStartup(); }
DefaultMailStorageConfiguration implements MailStorageConfiguration { @Override public boolean discardSuccessStatuses() { Integer discardSuccessStatuses = this.mailConfigSource.getProperty(DISCARD_SUCCESS_STATUSES); if (discardSuccessStatuses == null) { discardSuccessStatuses = this.xwikiPropertiesSource.getProperty(PREFIX + DISCARD_SUCCESS_STATUSES, 1); } return (discardSuccessStatuses == 1); }  @Override boolean discardSuccessStatuses(); @Override boolean resendAutomaticallyAtStartup();  }