/*******************************************************************************
* 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.model.sca.tests;
import org.eclipse.emf.transaction.util.TransactionUtil;
import org.junit.Assert;
import org.omg.CosEventChannelAdmin.EventChannelHelper;
import gov.redhawk.model.sca.ScaEventChannel;
import junit.textui.TestRunner;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Event Channel</b></em>'.
* <!-- end-user-doc -->
* @generated
*/
public class ScaEventChannelTest extends CorbaObjWrapperTest {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static void main(String[] args) {
TestRunner.run(ScaEventChannelTest.class);
}
/**
* Constructs a new Event Channel test case with the given name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ScaEventChannelTest(String name) {
super(name);
}
/**
* Returns the fixture for this Event Channel test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected ScaEventChannel getFixture() {
return (ScaEventChannel) fixture;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#setUp()
* @generated NOT
*/
@Override
protected void setUp() throws Exception {
this.env = TestEnvirornment.getInstance();
setFixture(this.env.getDomMgr().getEventChannels().get(0));
Assert.assertNotNull(getFixture());
Assert.assertNotNull(TransactionUtil.getEditingDomain(getFixture()));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#tearDown()
* @generated
*/
@Override
protected void tearDown() throws Exception {
setFixture(null);
}
@Override
protected String getRepId() {
return EventChannelHelper.id();
}
} // ScaEventChannelTest