Search in sources :

Example 1 with Decorator

use of org.sonar.api.batch.Decorator in project sonarqube by SonarSource.

the class ScannerExtensionDictionnaryTest method testGetFilteredExtensions.

@Test
public void testGetFilteredExtensions() {
    Sensor sensor1 = new FakeSensor();
    Sensor sensor2 = new FakeSensor();
    Decorator decorator = mock(Decorator.class);
    ScannerExtensionDictionnary selector = newSelector(sensor1, sensor2, decorator);
    Collection<Sensor> sensors = selector.select(Sensor.class, null, true, null);
    assertThat(sensors).containsOnly(sensor1, sensor2);
}
Also used : Decorator(org.sonar.api.batch.Decorator) Sensor(org.sonar.api.batch.Sensor) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 Decorator (org.sonar.api.batch.Decorator)1 Sensor (org.sonar.api.batch.Sensor)1