2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.yangtools.yang.stmt;
10 import static org.junit.Assert.assertNotNull;
13 import org.junit.Test;
14 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
16 public class Bug2291Test {
19 public void testRevisionWithExt() throws Exception {
20 File extdef = new File(getClass().getResource("/bugs/bug2291/bug2291-ext.yang").toURI());
21 File bug = new File(getClass().getResource("/bugs/bug2291/bug2291.yang").toURI());
22 File inet = new File(getClass().getResource("/ietf/ietf-inet-types@2010-09-24.yang").toURI());
24 SchemaContext context = TestUtils.parseYangSources(extdef, bug, inet);
25 assertNotNull(context);