blob: ea79dcd6d3c50e72ba5991a7fa5a7f52ff5cd43d [file] [log] [blame]
/**
* Copyright (c) 2013, 2017 CEA LIST.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* CEA LIST - Initial API and implementation
*/
package org.eclipse.papyrus.cdo.validation.problems.tests;
import java.util.Map;
import junit.framework.TestCase;
import junit.textui.TestRunner;
import org.eclipse.papyrus.cdo.validation.problems.ProblemsFactory;
import org.eclipse.papyrus.cdo.validation.problems.ProblemsPackage;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Attribute</b></em>'.
* <!-- end-user-doc -->
* @generated
*/
public class AttributeTest extends TestCase {
/**
* The fixture for this Attribute test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected Map.Entry<String, String> fixture = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static void main(String[] args) {
TestRunner.run(AttributeTest.class);
}
/**
* Constructs a new Attribute test case with the given name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public AttributeTest(String name) {
super(name);
}
/**
* Sets the fixture for this Attribute test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void setFixture(Map.Entry<String, String> fixture) {
this.fixture = fixture;
}
/**
* Returns the fixture for this Attribute test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected Map.Entry<String, String> getFixture() {
return fixture;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#setUp()
* @generated
*/
@Override
@SuppressWarnings("unchecked")
protected void setUp() throws Exception {
setFixture((Map.Entry<String, String>)ProblemsFactory.eINSTANCE.create(ProblemsPackage.Literals.ATTRIBUTE));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#tearDown()
* @generated
*/
@Override
protected void tearDown() throws Exception {
setFixture(null);
}
} //AttributeTest