| /** |
| * <copyright> |
| * </copyright> |
| * |
| * $Id: EjbRefTest.java,v 1.1 2005/08/23 03:31:00 cbridgha Exp $ |
| */ |
| package org.eclipse.jst.j2ee.common.tests; |
| |
| import junit.framework.TestCase; |
| |
| import junit.textui.TestRunner; |
| |
| import org.eclipse.jst.j2ee.common.CommonFactory; |
| import org.eclipse.jst.j2ee.common.EjbRef; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * A test case for the model object '<em><b>Ejb Ref</b></em>'. |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public class EjbRefTest extends TestCase { |
| /** |
| * The fixture for this Ejb Ref test case. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected EjbRef fixture = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static void main(String[] args) { |
| TestRunner.run(EjbRefTest.class); |
| } |
| |
| /** |
| * Constructs a new Ejb Ref test case with the given name. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EjbRefTest(String name) { |
| super(name); |
| } |
| |
| /** |
| * Sets the fixture for this Ejb Ref test case. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected void setFixture(EjbRef fixture) { |
| this.fixture = fixture; |
| } |
| |
| /** |
| * Returns the fixture for this Ejb Ref test case. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EjbRef getFixture() { |
| return fixture; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see junit.framework.TestCase#setUp() |
| * @generated |
| */ |
| protected void setUp() throws Exception { |
| setFixture(CommonFactory.eINSTANCE.createEjbRef()); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see junit.framework.TestCase#tearDown() |
| * @generated |
| */ |
| protected void tearDown() throws Exception { |
| setFixture(null); |
| } |
| |
| } //EjbRefTest |