1 package org.opendaylight.controller.cluster.datastore.node.utils;
4 import org.opendaylight.controller.cluster.datastore.util.TestModel;
5 import org.opendaylight.yangtools.yang.common.QName;
7 import static junit.framework.Assert.assertTrue;
8 import static junit.framework.TestCase.assertEquals;
9 import static org.junit.Assert.assertFalse;
11 public class QNameFactoryTest {
14 public void testBasic(){
15 QName expected = TestModel.AUG_NAME_QNAME;
16 QName created = QNameFactory.create(expected.toString());
18 assertFalse( expected == created);
20 assertEquals(expected, created);
22 QName cached = QNameFactory.create(expected.toString());
24 assertEquals(expected, cached);
26 assertTrue( cached == created );