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