X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-parser-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fstmt%2FEffectiveModuleTest.java;h=0891fcc054e9dbc06d7b56a75d92276a168339c4;hb=5079ec96bfeeb7a6ff66e71a114033c7d6c5c7a3;hp=0a6bcd876de85cad0c44e186e920687e7216bde2;hpb=4f1692c802228d396f60fa2374646024781c1c12;p=yangtools.git diff --git a/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/EffectiveModuleTest.java b/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/EffectiveModuleTest.java index 0a6bcd876d..0891fcc054 100644 --- a/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/EffectiveModuleTest.java +++ b/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/EffectiveModuleTest.java @@ -119,7 +119,10 @@ public class EffectiveModuleTest { assertEquals(1, deviations.size()); final Deviation deviationStmt = deviations.iterator().next(); assertNotNull(deviationStmt); - assertEquals(contSchemaPath, deviationStmt.getTargetPath()); + final QNameModule importedModuleQName = QNameModule.create(URI.create("imported"), revision); + final QName importedContQName = QName.create(importedModuleQName, "cont"); + final SchemaPath importedContSchemaPath = SchemaPath.create(true, importedContQName); + assertEquals(importedContSchemaPath, deviationStmt.getTargetPath()); assertEquals(DeviateKind.ADD, deviationStmt.getDeviates().iterator().next().getDeviateType()); assertEquals("deviate reference", deviationStmt.getReference());