Bump MRI upstreams
[netconf.git] / netconf / sal-netconf-connector / src / test / java / org / opendaylight / netconf / sal / connect / netconf / AbstractBaseSchemasTest.java
1 /*
2  * Copyright (c) 2020 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.netconf.sal.connect.netconf.schema.mapping.BaseNetconfSchemas;
13 import org.opendaylight.netconf.sal.connect.netconf.schema.mapping.DefaultBaseNetconfSchemas;
14 import org.opendaylight.yangtools.yang.parser.api.YangParserException;
15 import org.opendaylight.yangtools.yang.parser.impl.DefaultYangParserFactory;
16
17 public abstract class AbstractBaseSchemasTest {
18     protected static BaseNetconfSchemas BASE_SCHEMAS;
19
20     @BeforeClass
21     public static void initBaseSchemas() throws YangParserException {
22         BASE_SCHEMAS = new DefaultBaseNetconfSchemas(new DefaultYangParserFactory());
23     }
24
25     @AfterClass
26     public static void freeBaseSchemas() {
27         BASE_SCHEMAS = null;
28     }
29 }