/* * Copyright (C) 2009 by Claas Wilke (claaswilke@gmx.net) This file is part of * the UML2 Meta Model of Dresden OCL2 for Eclipse. Dresden OCL2 for Eclipse is * free software: you can redistribute it and/or modify it under the terms of * the GNU Lesser General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. Dresden OCL2 for Eclipse is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser * General Public License for more details. You should have received a copy of * the GNU Lesser General Public License along with Dresden OCL2 for Eclipse. If * not, see <http://www.gnu.org/licenses/>. */ package org.dresdenocl.metamodels.xsd.test; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.runners.Suite; import org.dresdenocl.metamodels.test.MetaModelTestPlugin; import org.dresdenocl.metamodels.test.MetaModelTestServices; import org.dresdenocl.metamodels.test.MetaModelTestSuite; import org.dresdenocl.metamodels.xsd.XSDMetamodelPlugin; import org.dresdenocl.model.metamodel.IMetamodel; /** * <p> * This class tests the {@link UML2MetamodelPlugin} using the * {@link MetaModelTestSuite}. * </p> * * @author Claas Wilke */ @Suite.SuiteClasses(value = { MetaModelTestSuite.class }) public class TestXmlSchemaMetaModel extends MetaModelTestSuite { /** The id of the {@link IMetamodel} which shall be tested. */ private static final String META_MODEL_ID = XSDMetamodelPlugin.ID; /** The path of the model which shall be tested. */ private static final String TEST_MODEL_PATH = "model/package1.xsd"; /** * <p> * Prepares the {@link MetaModelTestSuite}. * </p> */ @BeforeClass public static void setUp() { MetaModelTestServices.capitalizePackageNames = true; MetaModelTestServices.supportsNoOperations = true; MetaModelTestPlugin.prepareTest(XmlSchemaMetamodelTestPlugin.ID, TEST_MODEL_PATH, META_MODEL_ID); } @AfterClass public static void tearDown() { MetaModelTestServices.capitalizePackageNames = false; MetaModelTestServices.supportsNoOperations = false; } }