blob: ecfbd1ba4017af8d0b814bdc6564a31186d7921a [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2012 Tasktop Technologies 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:
* Tasktop Technologies - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.tests;
import org.eclipse.mylyn.bugzilla.rest.core.tests.AllBugzillaRestCoreTests;
import org.eclipse.mylyn.bugzilla.tests.AllBugzillaTests;
import org.eclipse.mylyn.commons.sdk.util.ManagedSuite;
import org.eclipse.mylyn.commons.sdk.util.ManagedTestSuite;
import org.eclipse.mylyn.commons.sdk.util.TestConfiguration;
import org.eclipse.mylyn.gerrit.tests.AllGerritTests;
import org.eclipse.mylyn.hudson.tests.AllHudsonTests;
import org.eclipse.mylyn.trac.tests.AllTracTests;
import junit.framework.JUnit4TestAdapter;
import junit.framework.Test;
import junit.framework.TestSuite;
/**
* @author Steffen Pingel
*/
public class AllLocalTests {
public static Test suite() {
TestConfiguration configuration = ManagedSuite.getTestConfiguration();
if (configuration == null) {
configuration = new TestConfiguration();
configuration.setLocalOnly(true);
ManagedSuite.setTestConfiguration(configuration);
}
TestSuite suite = new ManagedTestSuite(AllLocalTests.class.getName());
AllNonConnectorTests.addTests(suite, configuration);
addTests(suite, configuration);
return suite;
}
static void addTests(TestSuite suite, TestConfiguration configuration) {
suite.addTest(AllBugzillaTests.suite(configuration));
suite.addTest(AllTracTests.suite(configuration));
suite.addTest(AllHudsonTests.suite(configuration));
suite.addTest(AllGerritTests.suite(configuration));
suite.addTest(new JUnit4TestAdapter(AllBugzillaRestCoreTests.class));
}
}