ConfigurationInitializer { @PostConstruct void afterPropertiesSet() throws Exception { propertyLoader.loadProperties(); loadProperties(); startUpMessageGenerator.logStartUpMessage(); jmsConnectionConfigurer.setBrokerUrl(); indexTaskScheduler = applicationContext.getBean("indexTaskScheduler", IndexTaskScheduler.class); indexTaskScheduler.runReindexOnDemand(); indexTaskScheduler.startReindexScheduling(); }    }
@Test public final void testAfterPropertiesCallStartUpMessage() throws Exception { underTest.afterPropertiesSet(); verify(startUpMessageGenerator).logStartUpMessage(); }
@Test public final void testAfterPropertiesCallJmsConnectionConfigurer() throws Exception { underTest.afterPropertiesSet(); verify(jmsConnectionConfigurer).setBrokerUrl(); }
@Test public final void testAfterPropertiesScheduleReindexing() throws Exception { underTest.afterPropertiesSet(); verify(indexTaskScheduler).startReindexScheduling(); }
@Test public final void testAfterPropertiesShouldBuildTheIndex() throws Exception { underTest.afterPropertiesSet(); verify(indexTaskScheduler).runReindexOnDemand(); }