summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Cmarada <mcmarada@cisco.com>2019-05-23 10:31:26 +0200
committerMichal Cmarada <mcmarada@cisco.com>2019-05-23 08:32:37 +0000
commit09d3502f0d8e719b42b4a3808a270ab90d9339bf (patch)
tree22448584e17cb34ea14bbbf7430b664f9e772d27
parente0a2498c90a3b7c3ca74783f2f38d3d2048e49eb (diff)
use stats future from stats module in V3PO
Change-Id: I038995fce5fdb171d3c9e569fa4bbd9bc2a87a6f Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
-rw-r--r--v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/V3poModule.java1
-rw-r--r--v3po/v3po2vpp/src/test/java/io/fd/hc2vpp/v3po/V3poModuleTest.java5
2 files changed, 5 insertions, 1 deletions
diff --git a/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/V3poModule.java b/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/V3poModule.java
index 569f58fb4..1aafca168 100644
--- a/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/V3poModule.java
+++ b/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/V3poModule.java
@@ -75,7 +75,6 @@ public class V3poModule extends AbstractModule {
// Statistics
bind(InterfaceStatisticsManager.class).toProvider(InterfaceStatisticsManagerProvider.class)
.in(Singleton.class);
- bind(FutureJVppStatsFacade.class).toProvider(jvppStatsProviderClass).in(Singleton.class);
// Context utility for deleted interfaces
bind(DisabledInterfacesManager.class).toInstance(new DisabledInterfacesManager());
diff --git a/v3po/v3po2vpp/src/test/java/io/fd/hc2vpp/v3po/V3poModuleTest.java b/v3po/v3po2vpp/src/test/java/io/fd/hc2vpp/v3po/V3poModuleTest.java
index 41a4354b9..71d80846e 100644
--- a/v3po/v3po2vpp/src/test/java/io/fd/hc2vpp/v3po/V3poModuleTest.java
+++ b/v3po/v3po2vpp/src/test/java/io/fd/hc2vpp/v3po/V3poModuleTest.java
@@ -38,6 +38,7 @@ import io.fd.honeycomb.translate.read.ReaderFactory;
import io.fd.honeycomb.translate.util.YangDAG;
import io.fd.honeycomb.translate.write.WriterFactory;
import io.fd.jvpp.core.future.FutureJVppCore;
+import io.fd.jvpp.stats.future.FutureJVppStats;
import io.fd.jvpp.stats.future.FutureJVppStatsFacade;
import java.util.HashSet;
import java.util.Set;
@@ -67,6 +68,10 @@ public class V3poModuleTest {
@Mock
private FutureJVppCore futureJVppCore;
+ @Bind
+ @Mock
+ private FutureJVppStatsFacade futureJVppStats;
+
@Mock
@Bind
private ShutdownHandler shutdownHandler;