blob: c7453da4ef95f939044f61b4e810b3459a1a7fce [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.ModelFactory;
import org.eclipse.stem.core.model.NodeDecorator;
/**
* <!-- begin-user-doc --> A test case for the model object '<em><b>Node Decorator</b></em>'.
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("all")
public class NodeDecoratorTest extends DecoratorTest {
public static URI DECORATOR_URI = STEMURI.createURI("decorator/nodeDecoratorTest.decorator");
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public static void main(String[] args) {
TestRunner.run(NodeDecoratorTest.class);
}
/**
* Constructs a new Node Decorator test case with the given name. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public NodeDecoratorTest(String name) {
super(name);
}
/**
* Returns the fixture for this Node Decorator test case. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
@Override
protected NodeDecorator getFixture() {
return (NodeDecorator)fixture;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @see junit.framework.TestCase#setUp()
* @generated NOT
*/
@Override
protected void setUp() throws Exception {
NodeDecorator d= ModelFactory.eINSTANCE.createNodeDecorator();
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 NodeDecorator nodeDecorator = getFixture();
assertTrue(nodeDecorator.sane());
} // testSane
} // NodeDecoratorTest