JaCoCoItSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .name("Groovy JaCoCo IT") .onlyOnLanguage(Groovy.KEY); } JaCoCoItSensor(JaCoCoConfiguration configuration, GroovyFileSystem fileSystem, PathResolver pathResolver, Settings settings); @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context);  }
@Test public void test_description() { DefaultSensorDescriptor defaultSensorDescriptor = new DefaultSensorDescriptor(); sensor.describe(defaultSensorDescriptor); assertThat(defaultSensorDescriptor.languages()).containsOnly(Groovy.KEY); }