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
1 package org.opendaylight.controller.sal.restconf.impl.test.structures;
2
3 import static org.junit.Assert.*;
4
5 import org.junit.Test;
6
7 public class CompareLf {
8
9     @Test
10     public void test() {
11         Lf lf1 = new Lf("name", "value");
12         Lf lf2 = new Lf("name", "value");
13         Lf lf3 = new Lf("name1", "value");
14         Lf lf4 = new Lf("name", "value1");
15         
16         assertTrue(lf1.equals(lf2));
17         assertFalse(lf1.equals(lf3));
18         assertFalse(lf1.equals(lf4));
19     }
20
21 }