/* * Copyright (c) 2019 PANTHEON.tech, s.r.o. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.yangtools.yang.stmt.yin; import static org.junit.Assert.assertEquals; import java.io.IOException; import java.net.URISyntaxException; import org.junit.AfterClass; import org.junit.BeforeClass; import org.opendaylight.yangtools.yang.model.api.SchemaContext; import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException; import org.opendaylight.yangtools.yang.stmt.TestUtils; import org.xml.sax.SAXException; public abstract class AbstractYinModulesTest { static SchemaContext context; @BeforeClass public static void beforeClass() throws ReactorException, SAXException, IOException, URISyntaxException { context = TestUtils.loadYinModules( AbstractYinModulesTest.class.getResource("/semantic-statement-parser/yin/modules").toURI()); assertEquals(9, context.getModules().size()); } @AfterClass public static void afterClass() { context = null; } }