blob: 43e18103c1bed0df9db9f8daa67672b349cf0b17 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009 The University of York.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* Dimitrios Kolovos - initial API and implementation
******************************************************************************/
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package friends.tests;
import friends.FriendsFactory;
import friends.Person;
import junit.framework.TestCase;
import junit.textui.TestRunner;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Person</b></em>'.
* <!-- end-user-doc -->
* @generated
*/
public class PersonTest extends TestCase {
/**
* The fixture for this Person test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected Person fixture = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static void main(String[] args) {
TestRunner.run(PersonTest.class);
}
/**
* Constructs a new Person test case with the given name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public PersonTest(String name) {
super(name);
}
/**
* Sets the fixture for this Person test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void setFixture(Person fixture) {
this.fixture = fixture;
}
/**
* Returns the fixture for this Person test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected Person getFixture() {
return fixture;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#setUp()
* @generated
*/
@Override
protected void setUp() throws Exception {
setFixture(FriendsFactory.eINSTANCE.createPerson());
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#tearDown()
* @generated
*/
@Override
protected void tearDown() throws Exception {
setFixture(null);
}
} //PersonTest