Correct LeafrefTypeDefinition
[yangtools.git] / yang / yang-model-util / src / test / java / org / opendaylight / yangtools / yang / model / util / SchemaContextUtilTest.java
index 50785ae53c0e0db577fc9a3d840b1acda574276b..c9c60f6e58b13b5fad0410b0073a638a4c4a5e39 100644 (file)
@@ -27,7 +27,7 @@ import org.mockito.junit.MockitoJUnitRunner;
 import org.opendaylight.yangtools.yang.common.QName;
 import org.opendaylight.yangtools.yang.common.QNameModule;
 import org.opendaylight.yangtools.yang.model.api.Module;
-import org.opendaylight.yangtools.yang.model.api.RevisionAwareXPath;
+import org.opendaylight.yangtools.yang.model.api.PathExpression;
 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
 import org.opendaylight.yangtools.yang.model.api.SchemaNode;
 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
@@ -85,12 +85,12 @@ public class SchemaContextUtilTest {
         assertNull("Should be null. Module TestQName not found",
                 SchemaContextUtil.findDataSchemaNode(mockSchemaContext, schemaPath));
 
-        RevisionAwareXPath xpath = new RevisionAwareXPathImpl("/test:bookstore/test:book/test:title", true);
+        PathExpression xpath = new PathExpressionImpl("/test:bookstore/test:book/test:title", true);
         assertNull("Should be null. Module bookstore not found",
                 SchemaContextUtil.findDataSchemaNode(mockSchemaContext, mockModule, xpath));
 
         SchemaNode int32node = BaseTypes.int32Type();
-        RevisionAwareXPath xpathRelative = new RevisionAwareXPathImpl("../prefix", false);
+        PathExpression xpathRelative = new PathExpressionImpl("../prefix", false);
         assertNull("Should be null, Module prefix not found",
                 SchemaContextUtil.findDataSchemaNodeForRelativeXPath(
                         mockSchemaContext, mockModule, int32node, xpathRelative));
@@ -103,7 +103,7 @@ public class SchemaContextUtilTest {
 
     @Test
     public void testDeref() {
-        RevisionAwareXPath xpath = new RevisionAwareXPathImpl("deref(../foo)/../bar", false);
+        PathExpression xpath = new PathExpressionImpl("deref(../foo)/../bar", false);
         assertNull(SchemaContextUtil.findDataSchemaNodeForRelativeXPath(mockSchemaContext, mockModule, schemaNode,
             xpath));
     }