blob: 9e940e8b97ba14925edf72b50c01e878483e90ac [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.MixingEdgeLabel;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Mixing Edge Label</b></em>'.
* <!-- end-user-doc -->
* @generated NOT
*/
@SuppressWarnings("all")
public class MixingEdgeLabelTest extends EdgeLabelTest {
/**
* The fixture for this Mixing Edge Label test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected MixingEdgeLabel fixture = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static void main(String[] args) {
TestRunner.run(MixingEdgeLabelTest.class);
}
/**
* Constructs a new Mixing Edge Label test case with the given name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MixingEdgeLabelTest(String name) {
super(name);
}
/**
* Sets the fixture for this Mixing Edge Label test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void setFixture(MixingEdgeLabel fixture) {
this.fixture = fixture;
}
/**
* Returns the fixture for this Mixing Edge Label test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected MixingEdgeLabel getFixture() {
return fixture;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#setUp()
* @generated
*/
@Override
protected void setUp() throws Exception {
setFixture(EdgesFactory.eINSTANCE.createMixingEdgeLabel());
}
/**
* Make sure the fixture makes sense.
*/
public void testFixture() {
final MixingEdgeLabel mixingEdgeLabel = getFixture();
assertNotNull(mixingEdgeLabel);
assertTrue(mixingEdgeLabel.sane());
assertNotNull(mixingEdgeLabel.getCurrentValue());
} // testFixture
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#tearDown()
* @generated
*/
@Override
protected void tearDown() throws Exception {
setFixture(null);
}
} //MixingEdgeLabelTest