blob: 565ea95240c485779c0b5b4fc9b7a77343ce3453 [file] [log] [blame]
/*
* Copyright (c) 2003, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM - Initial API and implementation
*
* $Id: VariableImplTest.java,v 1.1 2004/04/29 14:56:47 khussey Exp $
*/
package org.eclipse.uml2.impl.tests;
import junit.textui.TestRunner;
import org.eclipse.uml2.UML2Factory;
import org.eclipse.uml2.impl.VariableImpl;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Variable</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are tested:
* <ul>
* <li>{@link org.eclipse.uml2.impl.VariableImpl#getType() <em>Type</em>}</li>
* </ul>
* </p>
* <p>
* The following operations are tested:
* <ul>
* <li>{@link org.eclipse.uml2.impl.VariableImpl#getOwner() <em>Get Owner</em>}</li>
* </ul>
* </p>
* @generated
*/
public class VariableImplTest extends ConnectableElementImplTest {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final String copyright = "Copyright (c) 2003, 2004 IBM Corporation and others."; //$NON-NLS-1$
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static void main(String[] args) {
TestRunner.run(VariableImplTest.class);
}
/**
* Constructs a new Variable test case with the given name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public VariableImplTest(String name) {
super(name);
}
/**
* Returns the fixture for this Variable test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private VariableImpl getFixture() {
return (VariableImpl) fixture;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#setUp()
* @generated
*/
protected void setUp() throws Exception {
setFixture((VariableImpl) UML2Factory.eINSTANCE.createVariable());
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#tearDown()
* @generated
*/
protected void tearDown() throws Exception {
setFixture(null);
}
/**
* Tests the '{@link org.eclipse.uml2.impl.VariableImpl#getType() <em>Type</em>}' feature getter.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.eclipse.uml2.impl.VariableImpl#getType()
* @generated
*/
public void testGetType() {
// TODO: implement this feature getter test method
}
/**
* Tests the '{@link org.eclipse.uml2.impl.VariableImpl#setType() <em>Type</em>}' feature setter.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.eclipse.uml2.impl.VariableImpl#setType()
* @generated
*/
public void testSetType() {
// TODO: implement this feature setter test method
}
/**
* Tests the '{@link org.eclipse.uml2.impl.VariableImpl#getOwner() <em>Get Owner</em>}' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.eclipse.uml2.impl.VariableImpl#getOwner()
* @generated NOT
*/
public void testGetOwner() {
super.testGetOwner();
assertSame(getFixture().getScope(), getFixture().getOwner());
}
/**
* @see org.eclipse.uml2.impl.tests.NamedElementImplTest#setUpNamespace()
*/
protected void setUpNamespace() {
UML2Factory.eINSTANCE.createStructuredActivityNode().getVariables().add(getFixture());
}
/**
* @see org.eclipse.uml2.impl.tests.ElementImplTest#setUpOwner()
*/
protected void setUpOwner() {
UML2Factory.eINSTANCE.createStructuredActivityNode().getVariables().add(getFixture());
}
} //VariableImplTest