Remove SchemaPath from TypeDefinition implementations
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / java / org / opendaylight / yangtools / yang / stmt / Bug7440Test.java
index 92c4970957d89ffeeec1a3ab1478b157a1005462..77cc6559cde2cdac65d297e76f089cf075a8541a 100644 (file)
@@ -18,11 +18,9 @@ import org.opendaylight.yangtools.yang.model.api.DeviateDefinition;
 import org.opendaylight.yangtools.yang.model.api.Deviation;
 import org.opendaylight.yangtools.yang.model.api.Module;
 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-import org.opendaylight.yangtools.yang.model.api.SchemaPath;
 import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
 
 public class Bug7440Test {
-
     @Test
     public void testRestrictedTypeParentSchemaPathInDeviate() throws Exception {
         final SchemaContext schemaContext = StmtTestUtils.parseYangSources("/bugs/bug7440");
@@ -40,10 +38,7 @@ public class Bug7440Test {
         assertEquals(1, deviates.size());
         final DeviateDefinition deviateReplace = deviates.iterator().next();
 
-        final SchemaPath deviatedTypePath = SchemaPath.create(true, QName.create(bar.getQNameModule(), "test-leaf"),
-                QName.create(bar.getQNameModule(), "uint32"));
-
         final TypeDefinition<?> deviatedType = deviateReplace.getDeviatedType();
-        assertEquals(deviatedTypePath, deviatedType.getPath());
+        assertEquals(QName.create(bar.getQNameModule(), "uint32"), deviatedType.getQName());
     }
 }