| /* |
| * 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: StructuralFeatureActionImplTest.java,v 1.1 2004/04/29 14:56:47 khussey Exp $ |
| */ |
| package org.eclipse.uml2.impl.tests; |
| |
| import org.eclipse.uml2.UML2Factory; |
| import org.eclipse.uml2.impl.StructuralFeatureActionImpl; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * A test case for the model object '<em><b>Structural Feature Action</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following operations are tested: |
| * <ul> |
| * <li>{@link org.eclipse.uml2.impl.StructuralFeatureActionImpl#getInputs() <em>Get Inputs</em>}</li> |
| * </ul> |
| * </p> |
| * @generated |
| */ |
| public abstract class StructuralFeatureActionImplTest extends ActionImplTest { |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static final String copyright = "Copyright (c) 2003, 2004 IBM Corporation and others."; //$NON-NLS-1$ |
| |
| /** |
| * Constructs a new Structural Feature Action test case with the given name. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public StructuralFeatureActionImplTest(String name) { |
| super(name); |
| } |
| |
| /** |
| * Returns the fixture for this Structural Feature Action test case. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private StructuralFeatureActionImpl getFixture() { |
| return (StructuralFeatureActionImpl) fixture; |
| } |
| |
| /** |
| * Tests the '{@link org.eclipse.uml2.impl.StructuralFeatureActionImpl#getInputs() <em>Get Inputs</em>}' getter operation. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see org.eclipse.uml2.impl.StructuralFeatureActionImpl#getInputs() |
| * @generated NOT |
| */ |
| public void testGetInputs() { |
| super.testGetInputs(); |
| |
| if (null != getFixture().getObject()) { |
| assertTrue(getFixture().getInputs().contains(getFixture().getObject())); |
| } |
| } |
| |
| /** |
| * @see org.eclipse.uml2.impl.tests.ActionImplTest#setUpInputs() |
| */ |
| protected void setUpInputs() { |
| super.setUpInputs(); |
| |
| getFixture().setObject(UML2Factory.eINSTANCE.createInputPin()); |
| } |
| |
| } //StructuralFeatureActionImplTest |