blob: 5a7c9b20ac15612788f465645c126341d3e432a1 [file] [log] [blame]
package org.eclipse.stem.core.trigger.tests;
/*******************************************************************************
* Copyright (c) 2008 IBM Corporation and others.
* 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
import junit.textui.TestRunner;
import org.eclipse.emf.common.util.URI;
import org.eclipse.stem.core.STEMURI;
import org.eclipse.stem.core.model.tests.DecoratorTest;
import org.eclipse.stem.core.trigger.Trigger;
import org.eclipse.stem.core.trigger.TriggerFactory;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Trigger</b></em>'.
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("all")
public class TriggerTest extends DecoratorTest {
public static URI TRIGGER_URI = STEMURI.createURI("trigger/triggerTest.decorator");
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static void main(String[] args) {
TestRunner.run(TriggerTest.class);
}
/**
* Constructs a new Trigger test case with the given name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public TriggerTest(String name) {
super(name);
}
/**
* Returns the fixture for this Trigger test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected Trigger getFixture() {
return (Trigger)fixture;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#setUp()
* @generated NOT
*/
@Override
protected void setUp() throws Exception {
Trigger f = TriggerFactory.eINSTANCE.createTrigger();
f.getDublinCore().populate();
f.setURI(TRIGGER_URI);
f.getDublinCore().setIdentifier(TRIGGER_URI.toString());
setFixture(f);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#tearDown()
* @generated
*/
@Override
protected void tearDown() throws Exception {
setFixture(null);
}
} //TriggerTest