blob: 02aa39d911090b49bb16b780f17993455f79b17c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) {2007-2008} {INRIA and Engineering}.
* 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:
* {Adrian Mos (INRIA) and Andrea Zoppello (Engineering)} - initial API and implementation
*******************************************************************************/
package org.eclipse.soa.mangrove.tests;
import junit.textui.TestRunner;
import org.eclipse.soa.mangrove.Contract;
import org.eclipse.soa.mangrove.ImFactory;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Contract</b></em>'.
* <!-- end-user-doc -->
* @generated
*/
public class ContractTest extends PropertyTest {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static void main(String[] args) {
TestRunner.run(ContractTest.class);
}
/**
* Constructs a new Contract test case with the given name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ContractTest(String name) {
super(name);
}
/**
* Returns the fixture for this Contract test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected Contract getFixture() {
return (Contract)fixture;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#setUp()
* @generated
*/
@Override
protected void setUp() throws Exception {
setFixture(ImFactory.eINSTANCE.createContract());
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#tearDown()
* @generated
*/
@Override
protected void tearDown() throws Exception {
setFixture(null);
}
} //ContractTest