use of org.sonar.api.Startable in project sonarqube by SonarSource.
the class StartableBeanPostProcessorTest method stops_api_startable.
@Test
public void stops_api_startable() {
Startable startable = mock(Startable.class);
underTest.postProcessBeforeDestruction(startable, "startable");
verify(startable).stop();
verifyNoMoreInteractions(startable);
}
use of org.sonar.api.Startable in project sonarqube by SonarSource.
the class StartableBeanPostProcessorTest method starts_api_startable.
@Test
public void starts_api_startable() {
Startable startable = mock(Startable.class);
underTest.postProcessBeforeInitialization(startable, "startable");
verify(startable).start();
verifyNoMoreInteractions(startable);
}