Search in sources :

Example 1 with MetricDao

use of org.sonar.db.metric.MetricDao in project sonarqube by SonarSource.

the class DefaultMetricFinderTest method setUp.

@Before
public void setUp() {
    dbTester.prepareDbUnit(DefaultMetricFinderTest.class, "shared.xml");
    finder = new DefaultMetricFinder(new DbClient(dbTester.database(), dbTester.myBatis(), new MetricDao()));
}
Also used : DbClient(org.sonar.db.DbClient) MetricDao(org.sonar.db.metric.MetricDao) Before(org.junit.Before)

Example 2 with MetricDao

use of org.sonar.db.metric.MetricDao in project sonarqube by SonarSource.

the class DomainsActionTest method setUp.

@Before
public void setUp() {
    dbClient = new DbClient(db.database(), db.myBatis(), new MetricDao());
    dbSession = dbClient.openSession(false);
    ws = new WsTester(new MetricsWs(new DomainsAction(dbClient)));
}
Also used : DbClient(org.sonar.db.DbClient) WsTester(org.sonar.server.ws.WsTester) MetricDao(org.sonar.db.metric.MetricDao) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)2 DbClient (org.sonar.db.DbClient)2 MetricDao (org.sonar.db.metric.MetricDao)2 WsTester (org.sonar.server.ws.WsTester)1