@Test public void addPropertiesPropertySource() throws Exception { final CamundaBpmVersion version = new CamundaBpmVersion(); new PropertiesListener(version).onApplicationEvent(event); verify(mutablePropertySources).addFirst(propertiesPropertySource.capture()); assertThat(propertiesPropertySource.getValue()).isEqualTo(version.getPropertiesPropertySource()); }
@Override public void onApplicationEvent(final ApplicationEnvironmentPreparedEvent event) { event.getEnvironment() .getPropertySources() .addFirst(version.getPropertiesPropertySource()); }
PropertiesListener implements ApplicationListener<ApplicationEnvironmentPreparedEvent> { @Override public void onApplicationEvent(final ApplicationEnvironmentPreparedEvent event) { event.getEnvironment() .getPropertySources() .addFirst(version.getPropertiesPropertySource()); } }
PropertiesListener implements ApplicationListener<ApplicationEnvironmentPreparedEvent> { @Override public void onApplicationEvent(final ApplicationEnvironmentPreparedEvent event) { event.getEnvironment() .getPropertySources() .addFirst(version.getPropertiesPropertySource()); } PropertiesListener();   PropertiesListener(CamundaBpmVersion version); }
PropertiesListener implements ApplicationListener<ApplicationEnvironmentPreparedEvent> { @Override public void onApplicationEvent(final ApplicationEnvironmentPreparedEvent event) { event.getEnvironment() .getPropertySources() .addFirst(version.getPropertiesPropertySource()); } PropertiesListener();   PropertiesListener(CamundaBpmVersion version); @Override void onApplicationEvent(final ApplicationEnvironmentPreparedEvent event); }
PropertiesListener implements ApplicationListener<ApplicationEnvironmentPreparedEvent> { @Override public void onApplicationEvent(final ApplicationEnvironmentPreparedEvent event) { event.getEnvironment() .getPropertySources() .addFirst(version.getPropertiesPropertySource()); } PropertiesListener();   PropertiesListener(CamundaBpmVersion version); @Override void onApplicationEvent(final ApplicationEnvironmentPreparedEvent event);  }