blob: ffe361f0c060fc79aecfec5652caf09dec4f1e70 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 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
* Markus Alexander Kuppe, Versant Corporation - bug #215797
*******************************************************************************/
package org.eclipse.ui.tests.session;
import org.eclipse.ui.tests.harness.util.TweakletCheckTest;
import junit.framework.Test;
import junit.framework.TestSuite;
/**
* @since 3.1
*/
public class SessionTests extends TestSuite {
/**
* @return
*/
public static Test suite() {
return new SessionTests();
}
/**
*
*/
public SessionTests() {
addTweakletCheck();
addHandlerStateTests();
addIntroTests();
addEditorTests();
addViewStateTests();
addThemeTests();
}
/**
*
*/
private void addTweakletCheck() {
addTest(new TweakletCheckTest());
}
/**
*
*/
private void addThemeTests() {
addTest(new WorkbenchSessionTest("themeSessionTests",
ThemeStateTest.class));
}
/**
* Add editor tests that involve starting and stopping sessions.
*/
private void addEditorTests() {
addTest(new WorkbenchSessionTest("editorSessionTests",
Bug95357Test.class));
addTest(new WorkbenchSessionTest("editorSessionTests",
EditorWithStateTest.class));
addTest(new WorkbenchSessionTest("editorSessionTests",
ArbitraryPropertiesEditorTest.class));
}
/**
* Adds tests related to command and handler state.
*
* @since 3.2
*/
private void addHandlerStateTests() {
addTest(new WorkbenchSessionTest("editorSessionTests",
HandlerStateTest.class));
}
/**
* Adds intro related session tests.
*/
private void addIntroTests() {
addTest(new WorkbenchSessionTest("introSessionTests",
IntroSessionTests.class));
}
/**
* Add a view state test that involves state from one session to the other.
*
* BTW: the <b>editorSessionTests</b> is the zip file to grab the default
* workspace for these particular session tests.
*/
private void addViewStateTests() {
addTest(new WorkbenchSessionTest("editorSessionTests",
Bug98800Test.class));
addTest(new WorkbenchSessionTest("editorSessionTests",
Bug108033Test.class));
addTest(new WorkbenchSessionTest("editorSessionTests",
ArbitraryPropertiesViewTest.class));
addTest(new WorkbenchSessionTest("editorSessionTests", NonRestorableViewTest.class));
}
}