@Test public void describe() { DefaultSensorDescriptor descriptor = new DefaultSensorDescriptor(); sensor.describe(descriptor); assertEquals("ObjectiveCSquidSensor", descriptor.name()); assertTrue(descriptor.languages().contains(ObjectiveC.KEY)); }
@Override public void describe(@Nonnull SensorDescriptor descriptor) { descriptor.name(getClass().getSimpleName()); descriptor.onlyOnLanguage(ObjectiveC.KEY); }
ObjectiveCSquidSensor implements Sensor { @Override public void describe(@Nonnull SensorDescriptor descriptor) { descriptor.name(getClass().getSimpleName()); descriptor.onlyOnLanguage(ObjectiveC.KEY); } }
ObjectiveCSquidSensor implements Sensor { @Override public void describe(@Nonnull SensorDescriptor descriptor) { descriptor.name(getClass().getSimpleName()); descriptor.onlyOnLanguage(ObjectiveC.KEY); } @SuppressWarnings("WeakerAccess")  ObjectiveCSquidSensor(FileSystem fileSystem, PathResolver pathResolver); }
ObjectiveCSquidSensor implements Sensor { @Override public void describe(@Nonnull SensorDescriptor descriptor) { descriptor.name(getClass().getSimpleName()); descriptor.onlyOnLanguage(ObjectiveC.KEY); } @SuppressWarnings("WeakerAccess")  ObjectiveCSquidSensor(FileSystem fileSystem, PathResolver pathResolver); @Override void describe(@Nonnull SensorDescriptor descriptor); @Override void execute(@Nonnull SensorContext context); }
ObjectiveCSquidSensor implements Sensor { @Override public void describe(@Nonnull SensorDescriptor descriptor) { descriptor.name(getClass().getSimpleName()); descriptor.onlyOnLanguage(ObjectiveC.KEY); } @SuppressWarnings("WeakerAccess")  ObjectiveCSquidSensor(FileSystem fileSystem, PathResolver pathResolver); @Override void describe(@Nonnull SensorDescriptor descriptor); @Override void execute(@Nonnull SensorContext context);  }