/** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright (C) 2007 Matthias Braeuer (braeuer.matthias@web.de). * * All rights reserved. * * * * This work was done as a project at the Chair for Software Technology, * * Dresden University Of Technology, Germany (http://st.inf.tu-dresden.de). * * It is understood that any modification not identified as such is not * * covered by the preceding statement. * * * * This work is free software; you can redistribute it and/or modify it * * under the terms of the GNU Library General Public License as published * * by the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This work is distributed in the hope that it will be useful, but WITHOUT * * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public * * License for more details. * * * * You should have received a copy of the GNU Library General Public License * * along with this library; if not, you can view it online at * * http://www.fsf.org/licensing/licenses/gpl.html. * * * * To submit a bug report, send a comment, or get the latest news on this * * project, please visit the website: http://dresden-ocl.sourceforge.net. * * For more information on OCL and related projects visit the OCL Portal: * * http://st.inf.tu-dresden.de/ocl * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $Id$ */ package org.dresdenocl.essentialocl.expressions.tests; import junit.framework.TestCase; import junit.textui.TestRunner; import org.dresdenocl.essentialocl.expressions.Variable; import org.dresdenocl.essentialocl.expressions.impl.ExpressionsFactoryImpl; /** * <!-- begin-user-doc --> * A test case for the model object '<em><b>Variable</b></em>'. * <!-- end-user-doc --> * <p> * The following operations are tested: * <ul> * <li>{@link org.dresdenocl.essentialocl.expressions.Variable#asParameter() <em>As Parameter</em>}</li> * <li>{@link org.dresdenocl.essentialocl.expressions.Variable#asProperty() <em>As Property</em>}</li> * </ul> * </p> * @generated */ public class VariableTest extends TestCase { /** * The fixture for this Variable test case. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected Variable fixture = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static void main(String[] args) { TestRunner.run(VariableTest.class); } /** * Constructs a new Variable test case with the given name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public VariableTest(String name) { super(name); } /** * Sets the fixture for this Variable test case. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected void setFixture(Variable fixture) { this.fixture = fixture; } /** * Returns the fixture for this Variable test case. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected Variable getFixture() { return fixture; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see junit.framework.TestCase#setUp() * @generated */ @Override protected void setUp() throws Exception { setFixture(ExpressionsFactoryImpl.eINSTANCE.createVariable()); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see junit.framework.TestCase#tearDown() * @generated */ @Override protected void tearDown() throws Exception { setFixture(null); } /** * Tests the '{@link org.dresdenocl.essentialocl.expressions.Variable#asParameter() <em>As Parameter</em>}' operation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see org.dresdenocl.essentialocl.expressions.Variable#asParameter() * @generated */ public void testAsParameter() { // TODO: implement this operation test method // Ensure that you remove @generated or mark it @generated NOT fail(); } /** * Tests the '{@link org.dresdenocl.essentialocl.expressions.Variable#asProperty() <em>As Property</em>}' operation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see org.dresdenocl.essentialocl.expressions.Variable#asProperty() * @generated */ public void testAsProperty() { // TODO: implement this operation test method // Ensure that you remove @generated or mark it @generated NOT fail(); } } //VariableTest