Yang and XML conversion to Json test with equals
[controller.git] / opendaylight / md-sal / sal-rest-connector / src / test / java / org / opendaylight / controller / sal / restconf / impl / test / structures / CompareLf.java
diff --git a/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/structures/CompareLf.java b/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/structures/CompareLf.java
new file mode 100644 (file)
index 0000000..96b9b35
--- /dev/null
@@ -0,0 +1,21 @@
+package org.opendaylight.controller.sal.restconf.impl.test.structures;
+
+import static org.junit.Assert.*;
+
+import org.junit.Test;
+
+public class CompareLf {
+
+    @Test
+    public void test() {
+        Lf lf1 = new Lf("name", "value");
+        Lf lf2 = new Lf("name", "value");
+        Lf lf3 = new Lf("name1", "value");
+        Lf lf4 = new Lf("name", "value1");
+        
+        assertTrue(lf1.equals(lf2));
+        assertFalse(lf1.equals(lf3));
+        assertFalse(lf1.equals(lf4));
+    }
+
+}