/**
* This file is protected by Copyright.
* Please refer to the COPYRIGHT file distributed with this source distribution.
*
* This file is part of REDHAWK IDE.
*
* 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.
*
*/
// BEGIN GENERATED CODE
package gov.redhawk.eclipsecorba.idl.types.tests;
import gov.redhawk.eclipsecorba.idl.Definition;
import gov.redhawk.eclipsecorba.idl.Identifiable;
import gov.redhawk.eclipsecorba.idl.IdlFactory;
import gov.redhawk.eclipsecorba.idl.Module;
import gov.redhawk.eclipsecorba.idl.tests.IdlTypeDclTest;
import gov.redhawk.eclipsecorba.idl.types.StructForwardDcl;
import gov.redhawk.eclipsecorba.idl.types.TypesFactory;
import junit.textui.TestRunner;
/**
* <!-- begin-user-doc --> A test case for the model object '
* <em><b>Struct Forward Dcl</b></em>'. <!-- end-user-doc -->
* @generated
*/
public class StructForwardDclTest extends IdlTypeDclTest {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static void main(String[] args) {
TestRunner.run(StructForwardDclTest.class);
}
/**
* Constructs a new Struct Forward Dcl test case with the given name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public StructForwardDclTest(String name) {
super(name);
}
/**
* Returns the fixture for this Struct Forward Dcl test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected StructForwardDcl getFixture() {
return (StructForwardDcl)fixture;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#setUp()
* @generated
*/
@Override
protected void setUp() throws Exception {
setFixture(TypesFactory.eINSTANCE.createStructForwardDcl());
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#tearDown()
* @generated
*/
@Override
protected void tearDown() throws Exception {
setFixture(null);
}
@Override
protected boolean isForward() {
return true;
}
@Override
protected Identifiable addToContainer(final String repId, final Identifiable id) {
final Module m = IdlFactory.eINSTANCE.createModule();
m.setRepId(repId);
m.getDefinitions().add((Definition) id);
return m;
}
} //StructForwardDclTest