1 package org.opendaylight.yangtools.sal.binding.yang.types;
3 import static org.junit.Assert.*;
7 public class NodeWrappedTypeTest {
11 NodeWrappedType nwt1 = new NodeWrappedType("obj1");
12 NodeWrappedType nwt2 = new NodeWrappedType("obj2");
13 NodeWrappedType nwt3 = new NodeWrappedType("obj1");
16 assertTrue("Node nwt1 should equal to itself.", nwt1.equals(nwt1));
17 assertFalse("It can't be possible to compare nwt with string.", nwt1.equals(str));
18 assertFalse("nwt1 shouldn't equal to nwt2.", nwt1.equals(nwt2));
19 assertTrue("Node nwt1 should equal to nwt3.", nwt1.equals(nwt3));
21 assertEquals("toString method is returning incorrect value.", "NodeWrappedType{wrappedType=obj1}",