diff options
author | Maros Marsalek <mmarsale@cisco.com> | 2016-10-26 12:19:02 +0200 |
---|---|---|
committer | Maros Marsalek <mmarsale@cisco.com> | 2016-10-28 11:06:23 +0000 |
commit | ac29fb15b906ea62b722a2b442de909c6330251f (patch) | |
tree | 2a13b5053b172593991e4b803e5a3bfd1e268053 /lisp/lisp2vpp/src/test | |
parent | aecc708c8918476ca0fa6e5c52cb3366e58cffc1 (diff) |
Honeycomb-73 Extensible initializers for lisp
Change-Id: I30b0f472a8ba79b74c92c1b8283d23e860ec78af
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'lisp/lisp2vpp/src/test')
-rw-r--r-- | lisp/lisp2vpp/src/test/java/io/fd/honeycomb/lisp/translate/initializers/LispInitializerTest.java | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/lisp/lisp2vpp/src/test/java/io/fd/honeycomb/lisp/translate/initializers/LispInitializerTest.java b/lisp/lisp2vpp/src/test/java/io/fd/honeycomb/lisp/translate/initializers/LispInitializerTest.java deleted file mode 100644 index d14140f3f..000000000 --- a/lisp/lisp2vpp/src/test/java/io/fd/honeycomb/lisp/translate/initializers/LispInitializerTest.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.fd.honeycomb.lisp.translate.initializers; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import static org.mockito.Mockito.mock; - -import org.junit.Test; -import org.opendaylight.controller.md.sal.binding.api.DataBroker; -import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev161214.Lisp; -import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev161214.LispState; -import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev161214.LispStateBuilder; -import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev161214.lisp.feature.data.grouping.LispFeatureDataBuilder; - - -public class LispInitializerTest { - @Test - public void convert() throws Exception { - - final LispInitializer initializer = new LispInitializer(mock(DataBroker.class)); - final LispState state = new LispStateBuilder() - .setEnable(true) - .setLispFeatureData(new LispFeatureDataBuilder().build()) - .build(); - - final Lisp operational = initializer.convert(state); - - assertNotNull(operational); - assertEquals(operational.isEnable(), state.isEnable()); - assertEquals(operational.getLispFeatureData(), state.getLispFeatureData()); - } - -}
\ No newline at end of file |