blob: d32aff90d3bc59eda7228d5ab6397c5665a394f1 [file] [log] [blame]
package org.eclipse.stem.definitions.edges.tests;
/*******************************************************************************
* Copyright (c) 2007, 2008 IBM Corporation 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
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
import junit.textui.TestRunner;
import org.eclipse.stem.core.graph.tests.EdgeLabelTest;
import org.eclipse.stem.definitions.edges.EdgesFactory;
import org.eclipse.stem.definitions.edges.MigrationEdgeLabel;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Migration Edge Label</b></em>'.
* <!-- end-user-doc -->
* @generated NOT
*/
@SuppressWarnings("all")
public class MigrationEdgeLabelTest extends EdgeLabelTest {
/**
* The fixture for this Migration Edge Label test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected MigrationEdgeLabel fixture = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static void main(String[] args) {
TestRunner.run(MigrationEdgeLabelTest.class);
}
/**
* Constructs a new Migration Edge Label test case with the given name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MigrationEdgeLabelTest(String name) {
super(name);
}
/**
* Sets the fixture for this Migration Edge Label test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void setFixture(MigrationEdgeLabel fixture) {
this.fixture = fixture;
}
/**
* Returns the fixture for this Migration Edge Label test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected MigrationEdgeLabel getFixture() {
return fixture;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#setUp()
* @generated
*/
@Override
protected void setUp() throws Exception {
setFixture(EdgesFactory.eINSTANCE.createMigrationEdgeLabel());
}
/**
* Make sure the fixture makes sense.
*/
public void testFixture() {
final MigrationEdgeLabel migrationEdgeLabel = getFixture();
assertNotNull(migrationEdgeLabel);
assertTrue(migrationEdgeLabel.sane());
assertNotNull(migrationEdgeLabel.getCurrentValue());
} // testFixture
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#tearDown()
* @generated
*/
@Override
protected void tearDown() throws Exception {
setFixture(null);
}
} //MigrationEdgeLabelTest