Bump to odlparent-9.0.0/yangtools-7.0.1-SNAPSHOT
[mdsal.git] / binding / mdsal-binding-generator-impl / src / test / java / org / opendaylight / mdsal / binding / yang / types / TypeProviderModel.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.mdsal.binding.yang.types;
9
10 import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
11 import org.opendaylight.yangtools.yang.test.util.YangParserTestUtils;
12
13 /**
14  * Test Model Provider designated to load test resources and provide Schema Context for testing of TypeProviderImpl.
15  */
16 public final class TypeProviderModel {
17     public static final String TEST_TYPE_PROVIDER_MODULE_NAME = "test-type-provider";
18
19     private TypeProviderModel() {
20
21     }
22
23     public static EffectiveModelContext createTestContext() {
24         return YangParserTestUtils.parseYangResources(TypeProviderModel.class, "/base-yang-types.yang",
25             "/" + TEST_TYPE_PROVIDER_MODULE_NAME + ".yang", "/test-type-provider-b.yang");
26     }
27 }