blob: 28f45be0a088e526456e0f525ac1d60d5bfc774d [file] [log] [blame]
package org.eclipse.stem.core.model.tests;
/*******************************************************************************
* Copyright (c) 2006 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.emf.common.util.URI;
import org.eclipse.stem.core.STEMURI;
import org.eclipse.stem.core.model.GraphDecorator;
import org.eclipse.stem.core.model.ModelFactory;
/**
* <!-- begin-user-doc --> A test case for the model object '<em><b>Graph Decorator</b></em>'.
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("all")
public class GraphDecoratorTest extends DecoratorTest {
public static URI DECORATOR_URI = STEMURI.createURI("decorator/graphDecoratorTest.decorator");
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public static void main(String[] args) {
TestRunner.run(GraphDecoratorTest.class);
}
/**
* Constructs a new Graph Decorator test case with the given name. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public GraphDecoratorTest(String name) {
super(name);
}
/**
* Returns the fixture for this Graph Decorator test case. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
@Override
protected GraphDecorator getFixture() {
return (GraphDecorator)fixture;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @see junit.framework.TestCase#setUp()
* @generated NOT
*/
@Override
protected void setUp() throws Exception {
GraphDecorator d = ModelFactory.eINSTANCE.createGraphDecorator();
d.setURI(DECORATOR_URI);
setFixture(d);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @see junit.framework.TestCase#tearDown()
* @generated
*/
@Override
protected void tearDown() throws Exception {
setFixture(null);
}
/**
* Test the sanity of the fixture
*/
public void testSane() {
final GraphDecorator graphDecorator = getFixture();
assertTrue(graphDecorator.sane());
} // testSane
} // GraphDecoratorTest