summaryrefslogtreecommitdiffstats
path: root/lisp/lisp2vpp/src/test/java/io/fd/hc2vpp/lisp/translate/service/LispStateCheckServiceImplTest.java
diff options
context:
space:
mode:
authorJan Srnicek <jsrnicek@cisco.com>2017-04-24 09:39:59 +0200
committerMarek Gradzki <mgradzki@cisco.com>2017-04-24 08:07:47 +0000
commit470588683af86c9ab73538ced85e1d88f55e3b70 (patch)
tree127211cd95071b425ec5e4836cccf7f45e70fe6c /lisp/lisp2vpp/src/test/java/io/fd/hc2vpp/lisp/translate/service/LispStateCheckServiceImplTest.java
parente4139584aaf94df71a4ddb5e5a0dded1a80c249d (diff)
HC2VPP-124 - Post lisp apis to one***
All apis starting with prefix lisp*** will be abandoned, so refactoring to one*** variants Change-Id: I603b3ce54ef1f8b6cefaaccedb87ccbf3ea38dd0 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Diffstat (limited to 'lisp/lisp2vpp/src/test/java/io/fd/hc2vpp/lisp/translate/service/LispStateCheckServiceImplTest.java')
-rw-r--r--lisp/lisp2vpp/src/test/java/io/fd/hc2vpp/lisp/translate/service/LispStateCheckServiceImplTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/lisp2vpp/src/test/java/io/fd/hc2vpp/lisp/translate/service/LispStateCheckServiceImplTest.java b/lisp/lisp2vpp/src/test/java/io/fd/hc2vpp/lisp/translate/service/LispStateCheckServiceImplTest.java
index d5a351ca8..4aa9335bc 100644
--- a/lisp/lisp2vpp/src/test/java/io/fd/hc2vpp/lisp/translate/service/LispStateCheckServiceImplTest.java
+++ b/lisp/lisp2vpp/src/test/java/io/fd/hc2vpp/lisp/translate/service/LispStateCheckServiceImplTest.java
@@ -27,7 +27,7 @@ import io.fd.hc2vpp.common.test.util.FutureProducer;
import io.fd.honeycomb.translate.ModificationCache;
import io.fd.honeycomb.translate.read.ReadContext;
import io.fd.honeycomb.translate.write.WriteContext;
-import io.fd.vpp.jvpp.core.dto.ShowLispStatusReply;
+import io.fd.vpp.jvpp.core.dto.ShowOneStatusReply;
import io.fd.vpp.jvpp.core.future.FutureJVppCore;
import org.junit.Before;
import org.junit.Test;
@@ -79,15 +79,15 @@ public class LispStateCheckServiceImplTest implements FutureProducer {
@Test
public void testLispEnabledDisabledDump() throws Exception {
- when(vppApi.showLispStatus(any())).thenReturn(future(new ShowLispStatusReply()));
+ when(vppApi.showOneStatus(any())).thenReturn(future(new ShowOneStatusReply()));
assertFalse(impl.lispEnabled(readContext));
}
@Test
public void testLispEnabledEnabledDump() throws Exception {
- final ShowLispStatusReply reply = new ShowLispStatusReply();
+ final ShowOneStatusReply reply = new ShowOneStatusReply();
reply.featureStatus = 1;
- when(vppApi.showLispStatus(any())).thenReturn(future(reply));
+ when(vppApi.showOneStatus(any())).thenReturn(future(reply));
assertTrue(impl.lispEnabled(readContext));
}
} \ No newline at end of file