Search in sources :

Example 1 with Startable

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);
}
Also used : Startable(org.sonar.api.Startable) Test(org.junit.Test)

Example 2 with 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);
}
Also used : Startable(org.sonar.api.Startable) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 Startable (org.sonar.api.Startable)2