Rework NormalizedNode type hierarchy
[yangtools.git] / attic / yang-data-jaxen / src / test / java / org / opendaylight / yangtools / yang / data / jaxen / JaxenTest.java
index 48990a1dd16ec0f0c1f2628378b021f10e2b5670..57781c223498c79ce68af66b08c77ab9eb9a284f 100644 (file)
@@ -91,9 +91,9 @@ public class JaxenTest {
         assertTrue(xpathResult instanceof XPathNodesetResult);
         XPathNodesetResult nodeset = (XPathNodesetResult) xpathResult;
 
-        Entry<YangInstanceIdentifier, NormalizedNode<?, ?>> entry = nodeset.getValue().iterator().next();
+        Entry<YangInstanceIdentifier, NormalizedNode> entry = nodeset.getValue().iterator().next();
         assertNotNull(entry);
-        assertEquals("three", entry.getValue().getValue());
+        assertEquals("three", entry.getValue().body());
 
         convertNctx = new ConverterNamespaceContext(createPrefixes());
         navigator = new NormalizedNodeNavigator(convertNctx, (JaxenDocument) xpathDocument);
@@ -138,9 +138,9 @@ public class JaxenTest {
         assertTrue(xpathResult instanceof XPathNodesetResult);
         XPathNodesetResult nodeset = (XPathNodesetResult) xpathResult;
 
-        Entry<YangInstanceIdentifier, NormalizedNode<?, ?>> entry = nodeset.getValue().iterator().next();
+        Entry<YangInstanceIdentifier, NormalizedNode> entry = nodeset.getValue().iterator().next();
         assertNotNull(entry);
-        assertEquals("two", entry.getValue().getValue());
+        assertEquals("two", entry.getValue().body());
     }
 
     @Test(expected = VerifyException.class)