blob: 47c5bd2bf8a16d0b6b3b56149ba629baeb7fd498 [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: OpaqueExpressionImplTest.java,v 1.2.4.1 2004/10/01 17:40:02 khussey Exp $
*/
package org.eclipse.uml2.impl.tests;
import junit.textui.TestRunner;
import org.eclipse.uml2.UML2Factory;
import org.eclipse.uml2.impl.OpaqueExpressionImpl;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Opaque Expression</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are tested:
* <ul>
* <li>{@link org.eclipse.uml2.impl.OpaqueExpressionImpl#getResult() <em>Result</em>}</li>
* </ul>
* </p>
* @generated
*/
public class OpaqueExpressionImplTest extends ValueSpecificationImplTest {
/**
* <!-- 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(OpaqueExpressionImplTest.class);
}
/**
* Constructs a new Opaque Expression test case with the given name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public OpaqueExpressionImplTest(String name) {
super(name);
}
/**
* Returns the fixture for this Opaque Expression test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private OpaqueExpressionImpl getFixture() {
return (OpaqueExpressionImpl) fixture;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#setUp()
* @generated
*/
protected void setUp() throws Exception {
setFixture((OpaqueExpressionImpl) UML2Factory.eINSTANCE.createOpaqueExpression());
}
/**
* <!-- 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.OpaqueExpressionImpl#getResult() <em>Result</em>}' feature getter.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.eclipse.uml2.impl.OpaqueExpressionImpl#getResult()
* @generated
*/
public void testGetResult() {
// TODO: implement this feature getter test method
}
/* (non-Javadoc)
* @see org.eclipse.uml2.impl.tests.ValueSpecificationImplTest#testStringValue()
*/
public void testStringValue() {
getFixture().setBody(getName());
assertEquals(getName(), getFixture().stringValue()); //$NON-NLS-1$
getFixture().setBody(null);
assertEquals("", getFixture().stringValue()); //$NON-NLS-1$
}
/* (non-Javadoc)
* @see org.eclipse.uml2.impl.tests.NamedElementImplTest#setUpNamespace()
*/
protected void setUpNamespace() {
// TODO implement setUpNamespace
}
/* (non-Javadoc)
* @see org.eclipse.uml2.impl.tests.ElementImplTest#setUpOwner()
*/
protected void setUpOwner() {
UML2Factory.eINSTANCE.createTemplateParameter().setOwnedParameteredElement(getFixture());
}
} //OpaqueExpressionImplTest