| /** |
| */ |
| package org.eclipse.papyrus.layers.stackmodel.layers.tests; |
| |
| import java.util.Map; |
| |
| import junit.framework.TestCase; |
| import junit.textui.TestRunner; |
| |
| import org.eclipse.papyrus.layers.stackmodel.layers.LayersFactory; |
| import org.eclipse.papyrus.layers.stackmodel.layers.LayersPackage; |
| import org.eclipse.papyrus.layers.stackmodel.layers.Type; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * A test case for the model object '<em><b>String To Type Map</b></em>'. |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public class StringToTypeMapTest extends TestCase { |
| |
| /** |
| * The fixture for this String To Type Map test case. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| protected Map.Entry<String, Type> fixture = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public static void main(String[] args) { |
| TestRunner.run(StringToTypeMapTest.class); |
| } |
| |
| /** |
| * Constructs a new String To Type Map test case with the given name. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public StringToTypeMapTest(String name) { |
| super(name); |
| } |
| |
| /** |
| * Sets the fixture for this String To Type Map test case. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| protected void setFixture(Map.Entry<String, Type> fixture) { |
| this.fixture = fixture; |
| } |
| |
| /** |
| * Returns the fixture for this String To Type Map test case. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| protected Map.Entry<String, Type> 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, Type>) LayersFactory.eINSTANCE.create(LayersPackage.Literals.STRING_TO_TYPE_MAP)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @see junit.framework.TestCase#tearDown() |
| * @generated |
| */ |
| @Override |
| protected void tearDown() throws Exception { |
| setFixture(null); |
| } |
| |
| } // StringToTypeMapTest |