blob: febd46841a00fdba59721c2035773526266d763a [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2020 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - Initial API and implementation
*******************************************************************************/
package org.eclipse.jst.server.tomcat.tests.performance.tomcat50;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.jst.server.tomcat.core.tests.RuntimeLocation;
import junit.framework.Test;
import junit.framework.TestSuite;
public class AllTests {
static String PLUGIN_ID = "org.eclipse.jst.server.tomcat.tests.performance";
public static Test suite() {
TestSuite suite = new TestSuite("Test for org.eclipse.jst.server.tomcat.tests.performance.tomcat50");
//$JUnit-BEGIN$
System.setProperty("wtp.autotest.noninteractive", "true");
// Bug 107442 against Eclipse. Performance problem in Form based editors
// because FormUtil.computeWrapSize() calls BreakIterator.getWordInstance(),
// which takes 1.1s on the first load
ResourcesPlugin.getWorkspace().getDescription().setAutoBuilding(false);
suite.addTestSuite(CreateModulesTestCase.class);
suite.addTestSuite(BuildFullTestCase.class);
String s = System.getProperty("org.eclipse.jst.server.tomcat.50");
//s = "D:\\Tools\\tomcat\\jakarta-tomcat-5.0.25";
if (s != null && s.length() > 0) {
RuntimeLocation.runtimeLocation = s;
suite.addTestSuite(Tomcat50ServerTestCase.class);
suite.addTestSuite(GetDelegateTestCase.class);
suite.addTestSuite(OpenEditorTestCase.class);
suite.addTestSuite(OpenEditorAgainTestCase.class);
//suite.addTestSuite(ServerActionsTestCase.class);
} else {
System.err.println("Warning: Tomcat 5.0 not found - performance tests skipped");
}
suite.addTestSuite(CreateWebContentTestCase.class);
suite.addTestSuite(CreateXMLContentTestCase.class);
suite.addTestSuite(CreateJavaContentTestCase.class);
suite.addTestSuite(BuildFullAgainTestCase.class);
suite.addTestSuite(BuildCleanTestCase.class);
suite.addTestSuite(BuildIncrementalTestCase.class);
suite.addTestSuite(AddRemoveModulesWizardTestCase.class);
suite.addTestSuite(AddRemoveModulesWizard2TestCase.class);
suite.addTestSuite(CreateHugeModuleTestCase.class);
if (s != null && s.length() > 0) {
suite.addTestSuite(PublishTestCase.class);
suite.addTestSuite(PublishHugeModuleTestCase.class);
}
suite.addTestSuite(DeleteModulesTestCase.class);
AbstractTomcatServerTestCase.deleteServer();
suite.addTestSuite(AutobuildTestCase.class);
//ResourcesPlugin.getWorkspace().getDescription().setAutoBuilding(true);
//$JUnit-END$
return suite;
}
}