@Test public void testOnApplicationEvent() { listener.onApplicationEvent(new ContextRefreshedEvent(applicationContext)); verify(evolveManager, times(1)).evolve(); listener.onApplicationEvent(new ContextRefreshedEvent(applicationContext)); verify(evolveManager, times(1)).evolve(); assertTrue(ApplicationStartupListener.isApplicationStarted()); }
@Override public void onApplicationEvent(ContextRefreshedEvent event) { if (!applicationStarted) { contextInitialized(event); applicationStarted = true; } }
ApplicationStartupListener implements ApplicationListener<ContextRefreshedEvent> { @Override public void onApplicationEvent(ContextRefreshedEvent event) { if (!applicationStarted) { contextInitialized(event); applicationStarted = true; } } }
ApplicationStartupListener implements ApplicationListener<ContextRefreshedEvent> { @Override public void onApplicationEvent(ContextRefreshedEvent event) { if (!applicationStarted) { contextInitialized(event); applicationStarted = true; } }  }
ApplicationStartupListener implements ApplicationListener<ContextRefreshedEvent> { @Override public void onApplicationEvent(ContextRefreshedEvent event) { if (!applicationStarted) { contextInitialized(event); applicationStarted = true; } }  void contextInitialized(ApplicationEvent event); @Override void onApplicationEvent(ContextRefreshedEvent event); final void setPropertyName(String propertyName); final void setStartupCommand(List<StartupCommand> startupCommand); static boolean isApplicationStarted(); }
ApplicationStartupListener implements ApplicationListener<ContextRefreshedEvent> { @Override public void onApplicationEvent(ContextRefreshedEvent event) { if (!applicationStarted) { contextInitialized(event); applicationStarted = true; } }  void contextInitialized(ApplicationEvent event); @Override void onApplicationEvent(ContextRefreshedEvent event); final void setPropertyName(String propertyName); final void setStartupCommand(List<StartupCommand> startupCommand); static boolean isApplicationStarted();  }