03977c7a9516e5d9015abd0531d9f5acb58fe387
[netconf.git] / netconf / sal-netconf-connector / src / test / java / org / opendaylight / netconf / sal / connect / netconf / AbstractTestModelTest.java
1 /*
2  * Copyright (c) 2019 PANTHEON.tech, s.r.o. 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.netconf.sal.connect.netconf;
9
10 import org.junit.AfterClass;
11 import org.junit.BeforeClass;
12 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
13 import org.opendaylight.yangtools.yang.test.util.YangParserTestUtils;
14
15 public abstract class AbstractTestModelTest {
16     protected static SchemaContext SCHEMA_CONTEXT;
17
18     @BeforeClass
19     public static void beforeClass() {
20         SCHEMA_CONTEXT = YangParserTestUtils.parseYangResource("/schemas/test-module.yang");
21     }
22
23     @AfterClass
24     public static void afterClass() {
25         SCHEMA_CONTEXT = null;
26     }
27 }