blob: ee47258dfc751d1a53270bc26d6ebd56372a7cae [file] [log] [blame]
package org.eclipse.stem.core.scenario.tests;
/*******************************************************************************
* Copyright (c) 2006 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 java.io.File;
import java.util.List;
import junit.textui.TestRunner;
import org.eclipse.core.runtime.Preferences;
import org.eclipse.stem.core.scenario.Scenario;
import org.eclipse.stem.jobs.preferences.PreferenceConstants;
/**
* <!-- begin-user-doc --> A test case for the model object '<em><b>Scenario</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following operations are tested:
* <ul>
* <li>{@link org.eclipse.stem.core.scenario.Scenario#step() <em>Step</em>}</li>
* <li>{@link org.eclipse.stem.core.scenario.Scenario#reset() <em>Reset</em>}</li>
* <li>{@link org.eclipse.stem.core.scenario.Scenario#initialize() <em>Initialize</em>}</li>
* <li>{@link org.eclipse.stem.core.scenario.Scenario#produceTitle() <em>Produce Title</em>}</li>
* </ul>
* </p>
* @generated
*/
@SuppressWarnings("all")
public class ScenarioIntegrationSingleThreadTest extends ScenarioIntegrationTest {
private Scenario fixture;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public static void main(String[] args) {
TestRunner.run(ScenarioIntegrationSingleThreadTest.class);
}
/**
* Constructs a new Scenario test case with the given name. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public ScenarioIntegrationSingleThreadTest(String name) {
super(name);
}
/**
* Constructs a new Scenario test case with the given name. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated NOT
*/
public ScenarioIntegrationSingleThreadTest(String name, String file, List<File>projects) {
super(name, file, projects);
}
/**
* Returns the fixture for this Scenario test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected Scenario getFixture() {
return (Scenario)fixture;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @see junit.framework.TestCase#setUp()
* @generated NOT
*/
@Override
protected void setUp() throws Exception {
super.setUp();
// set some preferences
Preferences preferences = org.eclipse.stem.jobs.Activator.getDefault().getPluginPreferences();
preferences.setValue(PreferenceConstants.SIMULATION_SLEEP_BOOLEAN, false);
preferences = org.eclipse.stem.ui.Activator.getDefault().getPluginPreferences();
preferences.setValue(org.eclipse.stem.ui.preferences.PreferenceConstants.SIMULATION_THREADS, 1);
} // setUp
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @see junit.framework.TestCase#tearDown()
* @generated NOT
*/
@Override
protected void tearDown() throws Exception {
super.tearDown();
}
} // ScenarioTest