ConfigurationManager { public MailConfiguration getMailConfiguration() { return loader.getConf().getMessagingConfiguration().getMailConfiguration(); } ConfigurationManager(); static void postLoad(Configuration conf); synchronized void reloadConfiguration(); Configuration getConfiguration(); synchronized void saveConfiguration(); ArchiveSynchronizationCronConfiguration getArchiveSynchronizationCronConfiguration(); CleanDatabaseCronConfiguration getCleanDatabaseCronConfiguration(); DumpDatabaseCronConfiguration getDumpDatabaseCronConfiguration(); CleanDatabaseDumpCronConfiguration getCleanDatabaseDumpCronConfiguration(); FileScannersCronConfiguration getFileScannersCronConfiguration(); SearchesCronConfiguration getSearchesCronConfiguration(); SendLogsCronConfiguration getSendLogsCronConfiguration(); SystemCheckCronConfiguration getSystemCheckCronConfiguration(); JmsConfiguration getJmsConfiguration(); MailConfiguration getMailConfiguration(); NetworkConfiguration getNetworkConfiguration(); DownloadConfiguration getDownloadConfiguration(); ProductConfiguration getProductConfiguration(); SolrType getSolrType(); SolrConfiguration getSolrConfiguration(); SolrStandaloneConfiguration getSolrStandaloneConfiguration(); SolrCloudConfiguration getSolrCloudConfiguration(); OdataConfiguration getOdataConfiguration(); GeonameConfiguration getGeonameConfiguration(); GeocoderConfiguration getGeocoderConfiguration(); NominatimConfiguration getNominatimConfiguration(); ServerConfiguration getServerConfiguration(); ArchiveConfiguration getArchiveConfiguration(); TomcatConfiguration getTomcatConfiguration(); SupportConfiguration getSupportConfiguration(); AdministratorConfiguration getAdministratorConfiguration(); NameConfiguration getNameConfiguration(); ProcessingConfiguration getProcessingConfiguration(); List<DataStoreConf> getDataStoresConf(); DatabaseConfiguration getDatabaseConfiguration(); ExecutorConfiguration getExecutorConfiguration(); String getWorkingDirectoryPath(); String getJDBCDriver(); String getJDBCUrl(); String getLogin(); String getPassword(); String getHibernateDialect(); DataStoreManager getDataStoreManager(); ScannerManager getScannerManager(); SourceManager getSourceManager(); SynchronizerManager getSynchronizerManager(); EvictionManager getEvictionManager(); String getTrashPath(); String getErrorPath();  }
@Test public void testgetMailConfiguration() { Assert.assertNotNull(configurationManager.getMailConfiguration()); Assert.assertEquals(configurationManager.getMailConfiguration().isOnUserCreate(), false); Assert.assertEquals(configurationManager.getMailConfiguration().isOnUserDelete(), false); Assert.assertEquals(configurationManager.getMailConfiguration().isOnUserUpdate(), false); Assert.assertEquals(configurationManager.getMailConfiguration().getServerConfiguration().getSmtp(), "smtp.gael.fr"); Assert.assertEquals(configurationManager.getMailConfiguration().getServerConfiguration().getPort(), 587); Assert.assertEquals(configurationManager.getMailConfiguration().getServerConfiguration().isTls(), false); Assert.assertEquals(configurationManager.getMailConfiguration().getServerConfiguration().getUsername(), "dhus@gael.fr"); Assert.assertEquals(configurationManager.getMailConfiguration().getServerConfiguration().getPassword(), "password"); Assert.assertEquals(configurationManager.getMailConfiguration().getServerConfiguration().getReplyTo(), "dhus@gael.fr"); Assert.assertEquals(configurationManager.getMailConfiguration().getServerConfiguration().getMailFromConfiguration().getAddress(), "dhus@gael.fr"); Assert.assertEquals(configurationManager.getMailConfiguration().getServerConfiguration().getMailFromConfiguration().getName(), "DHuS Support Team"); Assert.assertEquals(configurationManager.getMailConfiguration().getServerConfiguration().getReplyTo(), "dhus@gael.fr"); }