use of sql.DummyStatement in project newrelic-java-agent by newrelic.
the class DatabaseTest method show.
@Test
public void show() throws Exception {
Statement stmt = new DummyStatement(new DummyConnection());
stmt.executeQuery("show tables");
Set<String> metrics = AgentHelper.getMetrics(AgentHelper.getDefaultStatsEngine());
for (String metric : metrics) {
if (metric.startsWith("Database") && metric.endsWith("show")) {
Assert.fail();
}
}
}
Aggregations