@Test public void should_create_a_valid_sensor_descriptor() { DefaultSensorDescriptor descriptor = new DefaultSensorDescriptor(); createJavaPropertiesSquidSensor().describe(descriptor); assertThat(descriptor.name()).isEqualTo("Java Properties Squid Sensor"); assertThat(descriptor.languages()).containsOnly("jproperties"); assertThat(descriptor.type()).isEqualTo(InputFile.Type.MAIN); }
@Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(JavaPropertiesLanguage.KEY) .name("Java Properties Squid Sensor") .onlyOnFileType(Type.MAIN); }
JavaPropertiesSquidSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(JavaPropertiesLanguage.KEY) .name("Java Properties Squid Sensor") .onlyOnFileType(Type.MAIN); } }
JavaPropertiesSquidSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(JavaPropertiesLanguage.KEY) .name("Java Properties Squid Sensor") .onlyOnFileType(Type.MAIN); } JavaPropertiesSquidSensor(FileSystem fileSystem, CheckFactory checkFactory);  JavaPropertiesSquidSensor(FileSystem fileSystem, CheckFactory checkFactory, @Nullable CustomJavaPropertiesRulesDefinition[] customRulesDefinition); }
JavaPropertiesSquidSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(JavaPropertiesLanguage.KEY) .name("Java Properties Squid Sensor") .onlyOnFileType(Type.MAIN); } JavaPropertiesSquidSensor(FileSystem fileSystem, CheckFactory checkFactory);  JavaPropertiesSquidSensor(FileSystem fileSystem, CheckFactory checkFactory, @Nullable CustomJavaPropertiesRulesDefinition[] customRulesDefinition); @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext sensorContext); }
JavaPropertiesSquidSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(JavaPropertiesLanguage.KEY) .name("Java Properties Squid Sensor") .onlyOnFileType(Type.MAIN); } JavaPropertiesSquidSensor(FileSystem fileSystem, CheckFactory checkFactory);  JavaPropertiesSquidSensor(FileSystem fileSystem, CheckFactory checkFactory, @Nullable CustomJavaPropertiesRulesDefinition[] customRulesDefinition); @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext sensorContext);  }