OpenEdgeDBSensor implements Sensor { @Override public void execute(SensorContext context) { computeBaseMetrics(context); }  @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context);  }
@Test public void testSp2k() throws Exception { SensorContextTester context = TestProjectSensorContext.createContext(); OpenEdgeDBSensor sensor = new OpenEdgeDBSensor(); sensor.execute(context); Assert.assertEquals(context.measure(BASEDIR + ":" + DF1, OpenEdgeMetrics.NUM_TABLES_KEY).value(), 25, "Wrong number of tables"); Assert.assertEquals(context.measure(BASEDIR + ":" + DF1, OpenEdgeMetrics.NUM_SEQUENCES_KEY).value(), 13, "Wrong number of sequences"); }