Remove SchemaPath from TypeDefinition implementations
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / java / org / opendaylight / yangtools / yang / stmt / AugmentTest.java
index 03361a8f360a870dbcaa7ec9617c5d1c77debd14..41cdb529d0d11c7241f9ebc4a98e8fcd91261cc4 100644 (file)
@@ -15,7 +15,6 @@ import static org.junit.Assert.assertTrue;
 import java.net.URI;
 import java.util.ArrayList;
 import java.util.Collection;
-import java.util.Collections;
 import java.util.List;
 import org.junit.Test;
 import org.opendaylight.yangtools.yang.common.QName;
@@ -95,9 +94,7 @@ public class AugmentTest {
         assertEquals(expectedSchemaPath, ds0ChannelNumber.getPath());
         assertFalse(ds0ChannelNumber.isAugmenting());
         // type of leaf ds0ChannelNumber
-        final List<QName> typePath = Collections.singletonList(BaseTypes.STRING_QNAME);
-        expectedSchemaPath = SchemaPath.create(typePath, true);
-        assertEquals(expectedSchemaPath, ds0ChannelNumber.getType().getPath());
+        assertEquals(BaseTypes.STRING_QNAME, ds0ChannelNumber.getType().getQName());
 
         // leaf interface-id
         qname = QName.create(FOO, "interface-id");