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.mdsal.binding.yang.types;
10 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
11 import org.opendaylight.yangtools.yang.test.util.YangParserTestUtils;
14 * Test Model Provider designated to load test resources and provide Schema Context for testing of TypeProviderImpl.
16 public final class TypeProviderModel {
17 public static final String TEST_TYPE_PROVIDER_MODULE_NAME = "test-type-provider";
19 private TypeProviderModel() {
23 public static SchemaContext createTestContext() {
24 return YangParserTestUtils.parseYangResources(TypeProviderModel.class, "/base-yang-types.yang",
25 "/" + TEST_TYPE_PROVIDER_MODULE_NAME + ".yang", "/test-type-provider-b.yang");