| /* |
| * Copyright (c) 2003, 2005 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 - initial API and implementation |
| * |
| * $Id: TriggerTest.java,v 1.1 2005/04/04 20:06:06 khussey Exp $ |
| */ |
| package org.eclipse.uml2.tests; |
| |
| import org.eclipse.uml2.Trigger; |
| |
| import org.eclipse.uml2.UML2Factory; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * A test case for the model object '<em><b>Trigger</b></em>'. |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public abstract class TriggerTest extends NamedElementTest { |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static final String copyright = "Copyright (c) 2003, 2005 IBM Corporation and others."; //$NON-NLS-1$ |
| |
| /** |
| * Constructs a new Trigger test case with the given name. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public TriggerTest(String name) { |
| super(name); |
| } |
| |
| /** |
| * Returns the fixture for this Trigger test case. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private Trigger getFixture() { |
| return (Trigger)fixture; |
| } |
| |
| /* (non-Javadoc) |
| * @see org.eclipse.uml2.impl.tests.ElementImplTest#setUpOwner() |
| */ |
| protected void setUpOwner() { |
| UML2Factory.eINSTANCE.createClass().getOwnedTriggers().add(getFixture()); |
| } |
| |
| /* (non-Javadoc) |
| * @see org.eclipse.uml2.impl.tests.NamedElementImplTest#setUpNamespace() |
| */ |
| protected void setUpNamespace() { |
| UML2Factory.eINSTANCE.createClass().getOwnedTriggers().add(getFixture()); |
| } |
| |
| } //TriggerImplTest |