Share TestModel schema context
[mdsal.git] / dom / mdsal-dom-broker / src / test / java / org / opendaylight / mdsal / dom / broker / AbstractDatastoreTest.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.mdsal.dom.broker;
9
10 import org.junit.AfterClass;
11 import org.junit.BeforeClass;
12 import org.opendaylight.mdsal.dom.broker.util.TestModel;
13 import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
14
15 public abstract class AbstractDatastoreTest {
16     static EffectiveModelContext SCHEMA_CONTEXT;
17
18     @BeforeClass
19     public static void beforeClass() {
20         SCHEMA_CONTEXT = TestModel.createTestContext();
21     }
22
23     @AfterClass
24     public static void afterClass() {
25         SCHEMA_CONTEXT = null;
26     }
27 }