2 * Copyright (c) 2019 PANTHEON.tech, s.r.o. and others. All rights reserved.
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
8 package org.opendaylight.yangtools.yang.data.codec.xml;
10 import org.junit.AfterClass;
11 import org.junit.BeforeClass;
12 import org.opendaylight.yangtools.yang.common.QName;
13 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
14 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
15 import org.opendaylight.yangtools.yang.test.util.YangParserTestUtils;
17 public abstract class AbstractAnydataTest {
18 static final QName FOO_QNAME = QName.create("test-anydata", "foo");
19 static final QName BAR_QNAME = QName.create(FOO_QNAME, "bar");
20 static final NodeIdentifier FOO_NODEID = NodeIdentifier.create(FOO_QNAME);
21 static final NodeIdentifier BAR_NODEID = NodeIdentifier.create(BAR_QNAME);
23 static SchemaContext SCHEMA_CONTEXT;
26 public static void beforeClass() throws Exception {
27 SCHEMA_CONTEXT = YangParserTestUtils.parseYangResource("/test-anydata.yang");
31 public static void afterClass() {
32 SCHEMA_CONTEXT = null;