use of org.opendaylight.infrautils.metrics.testimpl.TestMetricProviderImpl in project genius by opendaylight.
the class JobCoordinatorTestModule method configure.
// The GuiceRule needs to include
// CloseableModule.class, Jsr250Module (but not the AutoCloseableModule)
// directly or via the org.opendaylight.infrautils.inject.guice.testutils.AbstractGuiceJsr250Module
// for this to work.
@Override
protected void configure() {
MetricProvider metricProvider = new TestMetricProviderImpl();
JobCoordinatorImpl jobCoordinatorImpl = new JobCoordinatorImpl(metricProvider);
bind(JobCoordinator.class).toInstance(jobCoordinatorImpl);
bind(JobCoordinatorMonitor.class).toInstance(jobCoordinatorImpl);
}
Aggregations