Rework BaseScheams
[netconf.git] / plugins / netconf-client-mdsal / src / test / java / org / opendaylight / netconf / client / mdsal / 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.client.mdsal;
9
10 import org.junit.AfterClass;
11 import org.junit.BeforeClass;
12 import org.opendaylight.netconf.client.mdsal.api.BaseNetconfSchemaProvider;
13 import org.opendaylight.netconf.client.mdsal.impl.DefaultBaseNetconfSchemaProvider;
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 BaseNetconfSchemaProvider BASE_SCHEMAS;
19
20     @BeforeClass
21     public static void initBaseSchemas() throws YangParserException {
22         BASE_SCHEMAS = new DefaultBaseNetconfSchemaProvider(new DefaultYangParserFactory());
23     }
24
25     @AfterClass
26     public static void freeBaseSchemas() {
27         BASE_SCHEMAS = null;
28     }
29 }