Define a feature-parent
[yangtools.git] / parser / yang-parser-rfc7950 / src / test / java / org / opendaylight / yangtools / yang / stmt / Bug5550Test.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.yangtools.yang.stmt;
9
10 import static org.junit.jupiter.api.Assertions.assertInstanceOf;
11
12 import org.junit.jupiter.api.Test;
13 import org.opendaylight.yangtools.yang.common.QName;
14 import org.opendaylight.yangtools.yang.model.api.LeafSchemaNode;
15
16 class Bug5550Test extends AbstractYangTest {
17     private static final String NS = "foo";
18     private static final String REV = "2016-03-18";
19
20     @Test
21     void test() {
22         assertInstanceOf(LeafSchemaNode.class, assertEffectiveModelDir("/bugs/bug5550")
23             .findDataTreeChild(
24                 QName.create(NS, REV, "root"),
25                 QName.create(NS, REV, "container-in-grouping"),
26                 QName.create(NS, REV, "leaf-1"))
27             .orElseThrow());
28     }
29 }