@Test public void load_WITH_COPYING() { solrLoader.load(); verify(indexConfigurationCopier).copyIndexConfiguration(firstIndexConfiguration, CONFIGURATION_PATH); verify(indexConfigurationCopier).copyIndexConfiguration(secondIndexConfiguration, CONFIGURATION_PATH); verify(indexReloader).reloadIndex(firstIndexConfiguration); verify(indexReloader).reloadIndex(secondIndexConfiguration); verifyNoMoreInteractions(indexConfigurationCopier, indexReloader); }
public void load() { for (IndexConfiguration indexConfiguration : indexesConfigurations) { if (copyConfiguration) { indexConfigurationCopier.copyIndexConfiguration(indexConfiguration, solrHomeLocationPolicy.getSolrHome()); } indexReloader.reloadIndex(indexConfiguration); } }
SolrLoader implements ApplicationListener<ApplicationContextEvent> { public void load() { for (IndexConfiguration indexConfiguration : indexesConfigurations) { if (copyConfiguration) { indexConfigurationCopier.copyIndexConfiguration(indexConfiguration, solrHomeLocationPolicy.getSolrHome()); } indexReloader.reloadIndex(indexConfiguration); } } }
SolrLoader implements ApplicationListener<ApplicationContextEvent> { public void load() { for (IndexConfiguration indexConfiguration : indexesConfigurations) { if (copyConfiguration) { indexConfigurationCopier.copyIndexConfiguration(indexConfiguration, solrHomeLocationPolicy.getSolrHome()); } indexReloader.reloadIndex(indexConfiguration); } }  }
SolrLoader implements ApplicationListener<ApplicationContextEvent> { public void load() { for (IndexConfiguration indexConfiguration : indexesConfigurations) { if (copyConfiguration) { indexConfigurationCopier.copyIndexConfiguration(indexConfiguration, solrHomeLocationPolicy.getSolrHome()); } indexReloader.reloadIndex(indexConfiguration); } }  void load(); void shutdown(); @Override void onApplicationEvent(ApplicationContextEvent event); @Autowired void setSolrHomeLocationPolicy(
            SolrHomeLocationPolicy solrHomeLocationPolicy); @Autowired void setIndexConfigurationCopier(
            SolrIndexConfigurationCopier indexConfigurationCopier); @Autowired void setIndexReloader(IndexReloader indexReloader); @Autowired void setIndexesConfigurations(
            List<IndexConfiguration> indexesConfigurations); void setCopyConfiguration(boolean copyConfiguration); }
SolrLoader implements ApplicationListener<ApplicationContextEvent> { public void load() { for (IndexConfiguration indexConfiguration : indexesConfigurations) { if (copyConfiguration) { indexConfigurationCopier.copyIndexConfiguration(indexConfiguration, solrHomeLocationPolicy.getSolrHome()); } indexReloader.reloadIndex(indexConfiguration); } }  void load(); void shutdown(); @Override void onApplicationEvent(ApplicationContextEvent event); @Autowired void setSolrHomeLocationPolicy(
            SolrHomeLocationPolicy solrHomeLocationPolicy); @Autowired void setIndexConfigurationCopier(
            SolrIndexConfigurationCopier indexConfigurationCopier); @Autowired void setIndexReloader(IndexReloader indexReloader); @Autowired void setIndexesConfigurations(
            List<IndexConfiguration> indexesConfigurations); void setCopyConfiguration(boolean copyConfiguration);  }