Fix ChoiceNodeContextNode's byQName indexing
[yangtools.git] / codec / yang-data-codec-gson / src / test / java / org / opendaylight / yangtools / yang / data / codec / gson / AbstractComplexJsonTest.java
index a8815f56ff5e81e016b06315f61a9b5c433d776b..c68033032aa021b9dd5e010cd39db64a1c149208 100644 (file)
@@ -20,10 +20,12 @@ import org.opendaylight.yangtools.yang.test.util.YangParserTestUtils;
 
 public abstract class AbstractComplexJsonTest {
     static final QName CONT_1 = QName.create("ns:complex:json", "2014-08-11", "cont1");
+    static final NodeIdentifier CONT_1_NODEID = new NodeIdentifier(CONT_1);
+
     private static final QName EMPTY_LEAF = QName.create(CONT_1, "empty");
 
     static final ContainerNode CONT1_WITH_EMPTYLEAF = Builders.containerBuilder()
-            .withNodeIdentifier(new NodeIdentifier(CONT_1))
+            .withNodeIdentifier(CONT_1_NODEID)
             .addChild(ImmutableNodes.leafNode(EMPTY_LEAF, Empty.value()))
             .build();