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 | a85313d2f865c0adc808b7f1e717048b627a1ec2 (patch) | |
tree | 1493e39f78534f621f600831417ac17cf9cdb790 /lisp/lisp2vpp/src/test/java/io/fd | |
parent | fbaf23a926ce6727301aa8a293cb101ba17800b8 (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/java/io/fd')
-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 |