Further rework of base schemas
[netconf.git] / netconf / netconf-topology-singleton / src / test / java / org / opendaylight / netconf / topology / singleton / impl / 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.topology.singleton.impl;
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.impl.YangParserFactoryImpl;
15
16 public abstract class AbstractBaseSchemasTest {
17     protected static BaseNetconfSchemas BASE_SCHEMAS;
18
19     @BeforeClass
20     public static void initBaseSchemas() {
21         BASE_SCHEMAS = new DefaultBaseNetconfSchemas(new YangParserFactoryImpl());
22     }
23
24     @AfterClass
25     public static void freeBaseSchemas() {
26         BASE_SCHEMAS = null;
27     }
28 }