X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-parser-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fparser%2Fstmt%2Frfc6020%2Feffective%2FConstraintDefinitionsTest.java;h=6b60dd7c5e5db51999772ec8b0257fc7950689b4;hb=ae76efb1486909a2a57102a23b4d0fc7efee95a0;hp=aa0f39bfb0f17d894846c9b798b736fc9797c505;hpb=995d312c14bd31d62d0faa8b11773bc4399cfc4f;p=yangtools.git diff --git a/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/effective/ConstraintDefinitionsTest.java b/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/effective/ConstraintDefinitionsTest.java index aa0f39bfb0..6b60dd7c5e 100644 --- a/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/effective/ConstraintDefinitionsTest.java +++ b/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/effective/ConstraintDefinitionsTest.java @@ -44,9 +44,7 @@ public class ConstraintDefinitionsTest { final SchemaContext schemaContext = reactor.buildEffective(); assertNotNull(schemaContext); - final Module testModule = schemaContext.findModuleByName("foo", QName.parseRevision("2016-09-20")); - assertNotNull(testModule); - + final Module testModule = schemaContext.findModule("foo", QName.parseRevision("2016-09-20")).get(); final LeafSchemaNode mandatoryLeaf1 = (LeafSchemaNode) testModule.getDataChildByName( QName.create(testModule.getQNameModule(), "mandatory-leaf-1")); assertNotNull(mandatoryLeaf1);