Merge branch 'mdsal-trace' from controller
[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.SchemaContext;
11 import org.opendaylight.yangtools.yang.test.util.YangParserTestUtils;
12
13 /**
14  * Test Model Provider designated to load test resources and provide Schema Context
15  * for testing of TypeProviderImpl
16  */
17 public final class TypeProviderModel {
18
19     public static final String TEST_TYPE_PROVIDER_MODULE_NAME = "test-type-provider";
20
21     public static SchemaContext createTestContext() {
22         return YangParserTestUtils.parseYangResources(TypeProviderModel.class, "/base-yang-types.yang",
23             "/" + TEST_TYPE_PROVIDER_MODULE_NAME + ".yang", "/test-type-provider-b.yang");
24     }
25 }