ConfigurationManager { public ProductConfiguration getProductConfiguration() { return loader.getConf().getProductConfiguration(); } 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 checkConfigurationLoaderProduct () { ProductConfiguration product = conf.getProductConfiguration (); Assert.assertNotNull (product, "product configuration is null."); }
@Test public void getProductConfiguration() { Assert.assertNotNull(configurationManager.getProductConfiguration()); Assert.assertEquals(configurationManager.getProductConfiguration().getQuicklookConfiguration().getHeight(), 512); Assert.assertEquals(configurationManager.getProductConfiguration().getQuicklookConfiguration().getWidth(), 512); Assert.assertEquals(configurationManager.getProductConfiguration().getQuicklookConfiguration().isCutting(), false); Assert.assertEquals(configurationManager.getProductConfiguration().getThumbnailConfiguration().getHeight(), 64); Assert.assertEquals(configurationManager.getProductConfiguration().getThumbnailConfiguration().getWidth(), 64); Assert.assertEquals(configurationManager.getProductConfiguration().getThumbnailConfiguration().isCutting(), false); }