blob: 00aa3662b9804aaae903e35bcf5660533e605183 [file] [log] [blame]
package org.eclipse.stem.core.graph.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.framework.TestCase;
import junit.textui.TestRunner;
import org.eclipse.stem.core.STEMURI;
import org.eclipse.stem.core.common.tests.IdentifiableTest;
import org.eclipse.stem.core.graph.GraphFactory;
import org.eclipse.stem.core.graph.Node;
import org.eclipse.stem.tests.util.TestUtil;
/**
* <!-- begin-user-doc --> A test case for the model object '<em><b>Node</b></em>'.
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("all")
public class NodeTest extends IdentifiableTest {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public static void main(String[] args) {
TestRunner.run(NodeTest.class);
}
/**
* Constructs a new Node test case with the given name.
* <!-- begin-user-doc
* --> <!-- end-user-doc -->
* @generated
*/
public NodeTest(String name) {
super(name);
}
/**
* Returns the fixture for this Node test case.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @generated
*/
@Override
protected Node getFixture() {
return (Node)fixture;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @see junit.framework.TestCase#setUp()
* @generated NOT
*/
protected void setUp() throws Exception {
setFixture(TestUtil.createStaticallyLabeledNode());
} // setUp
/**
* <!-- 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 Node node = getFixture();
assertTrue(node.sane());
} // testSane
/**
* Test the Node has the right type URI.
*
* @generated NOT
*/
public void testGetTypeURI() {
final Node node = getFixture();
assertTrue(node.getTypeURI().equals(STEMURI.NODE_TYPE_URI));
} // testGetTypeURI
} // NodeTest