Fix missing MetricMaker in unit tests
Change-Id: Ia0106c3b8cd461464372efc72fe1a86b8215aced
This commit is contained in:
parent
5ae5356717
commit
de047d4bc8
@ -18,6 +18,8 @@ import static com.google.inject.Scopes.SINGLETON;
|
|||||||
|
|
||||||
import com.google.gerrit.extensions.events.LifecycleListener;
|
import com.google.gerrit.extensions.events.LifecycleListener;
|
||||||
import com.google.gerrit.lifecycle.LifecycleModule;
|
import com.google.gerrit.lifecycle.LifecycleModule;
|
||||||
|
import com.google.gerrit.metrics.DisabledMetricMaker;
|
||||||
|
import com.google.gerrit.metrics.MetricMaker;
|
||||||
import com.google.gerrit.reviewdb.server.ReviewDb;
|
import com.google.gerrit.reviewdb.server.ReviewDb;
|
||||||
import com.google.gerrit.server.config.GerritServerConfig;
|
import com.google.gerrit.server.config.GerritServerConfig;
|
||||||
import com.google.gerrit.server.config.SitePath;
|
import com.google.gerrit.server.config.SitePath;
|
||||||
@ -67,6 +69,7 @@ class InMemoryTestingDatabaseModule extends LifecycleModule {
|
|||||||
bind(GitRepositoryManager.class)
|
bind(GitRepositoryManager.class)
|
||||||
.toInstance(new InMemoryRepositoryManager());
|
.toInstance(new InMemoryRepositoryManager());
|
||||||
|
|
||||||
|
bind(MetricMaker.class).to(DisabledMetricMaker.class);
|
||||||
bind(DataSourceType.class).to(InMemoryH2Type.class);
|
bind(DataSourceType.class).to(InMemoryH2Type.class);
|
||||||
bind(InMemoryDatabase.class).in(SINGLETON);
|
bind(InMemoryDatabase.class).in(SINGLETON);
|
||||||
bind(new TypeLiteral<SchemaFactory<ReviewDb>>() {})
|
bind(new TypeLiteral<SchemaFactory<ReviewDb>>() {})
|
||||||
|
Loading…
Reference in New Issue
Block a user