X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=dom%2Fmdsal-dom-spi%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fmdsal%2Fdom%2Fspi%2FRegistrationTreeNodeTest.java;h=09350a224bd97180dfc702c62fddcd6846159828;hb=c71394328f488ea5f3bccf5ac8d42c8802cb637e;hp=c6a4926e34de032782628f0bddc69e345d8dee79;hpb=c452b0da50b4de6a41932855b97aa3b517b4879c;p=mdsal.git diff --git a/dom/mdsal-dom-spi/src/test/java/org/opendaylight/mdsal/dom/spi/RegistrationTreeNodeTest.java b/dom/mdsal-dom-spi/src/test/java/org/opendaylight/mdsal/dom/spi/RegistrationTreeNodeTest.java index c6a4926e34..09350a224b 100644 --- a/dom/mdsal-dom-spi/src/test/java/org/opendaylight/mdsal/dom/spi/RegistrationTreeNodeTest.java +++ b/dom/mdsal-dom-spi/src/test/java/org/opendaylight/mdsal/dom/spi/RegistrationTreeNodeTest.java @@ -7,10 +7,10 @@ */ package org.opendaylight.mdsal.dom.spi; -import static junit.framework.Assert.assertEquals; -import static junit.framework.Assert.assertFalse; -import static junit.framework.Assert.assertNotNull; -import static junit.framework.Assert.assertTrue; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertTrue; import static org.mockito.Mockito.doReturn; import static org.mockito.Mockito.mock; @@ -43,11 +43,11 @@ public class RegistrationTreeNodeTest { assertNotNull(registrationTreeNode.ensureChild(pathArgument)); assertNotNull(registrationTreeNode.getExactChild(pathArgument)); - final NodeWithValue nodeWithValue = new NodeWithValue<>(QName.create("testNode"), new Object()); - assertEquals(Collections.EMPTY_LIST, registrationTreeNode.getInexactChildren(nodeWithValue)); - assertEquals(Collections.EMPTY_LIST, registrationTreeNode.getInexactChildren(pathArgument)); + final NodeWithValue nodeWithValue = new NodeWithValue<>(QName.create("", "testNode"), new Object()); + assertEquals(Collections.emptyList(), registrationTreeNode.getInexactChildren(nodeWithValue)); + assertEquals(Collections.emptyList(), registrationTreeNode.getInexactChildren(pathArgument)); - final NodeIdentifier nodeWithoutValue = new NodeIdentifier(QName.create("testNode")); + final NodeIdentifier nodeWithoutValue = new NodeIdentifier(QName.create("", "testNode")); assertNotNull(registrationTreeNode.ensureChild(nodeWithoutValue)); assertFalse(registrationTreeNode.getInexactChildren(nodeWithValue).isEmpty());