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);
}