Skip to main content
summaryrefslogtreecommitdiffstats
blob: e7dd3fd5047685761d41830de4aee79b9f339708 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*******************************************************************************
 * Copyright (c) 2006, 2009 Steffen Pingel 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:
 *     Steffen Pingel - initial API and implementation
 *******************************************************************************/

package org.eclipse.mylyn.trac.tests;

import org.eclipse.mylyn.commons.sdk.util.CommonTestUtil;
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 junit.framework.Test;
import junit.framework.TestSuite;

/**
 * @author Mik Kersten
 * @author Steffen Pingel
 */
public class AllTracTests {

	public static Test suite() {
		if (CommonTestUtil.fixProxyConfiguration()) {
			CommonTestUtil.dumpSystemInfo(System.err);
		}
		TestConfiguration testConfiguration = ManagedSuite.getTestConfigurationOrCreateDefault();
		TestSuite suite = new ManagedTestSuite(AllTracTests.class.getName());
//		addTests(suite, testConfiguration);
		addEmptyTest(suite, testConfiguration);
		return suite;
	}

	public static Test suite(TestConfiguration configuration) {
		TestSuite suite = new TestSuite(AllTracTests.class.getName());
//		addTests(suite, configuration);
		addEmptyTest(suite, configuration);
		return suite;
	}

	private static void addEmptyTest(TestSuite suite, TestConfiguration default1) {
		suite.addTestSuite(EmptyTest.class);
	}

//	public static void addTests(TestSuite suite, TestConfiguration configuration) {
//		suite.addTest(AllTracHeadlessStandaloneTests.suite(configuration));
//		suite.addTestSuite(TracUtilTest.class);
//		suite.addTestSuite(TracHyperlinkUtilTest.class);
//
//		if (!configuration.isLocalOnly()) {
//			suite.addTestSuite(TracRepositoryQueryTest.class);
//			suite.addTestSuite(TracRepositorySettingsPageTest.class);
//			// network tests
//			List<TracFixture> fixtures = configuration.discover(TracFixture.class, "trac");
//			for (TracFixture fixture : fixtures) {
//				if (!fixture.hasTag(TracFixture.TAG_MISC)) {
//					addTests(suite, configuration, fixture);
//				}
//			}
//		}
//	}
//
//	protected static void addTests(TestSuite suite, TestConfiguration configuration, TracFixture fixture) {
//		fixture.createSuite(suite);
//		if (configuration.hasKind(TestKind.INTEGRATION) && !configuration.isLocalOnly()
//				&& CommonTestUtil.hasCredentials(PrivilegeLevel.ADMIN)) {
//			fixture.add(TracTestCleanupUtil.class);
//		}
//		fixture.add(TracRepositoryConnectorTest.class);
//		if (fixture.getAccessMode() == Version.XML_RPC) {
//			fixture.add(TracTaskDataHandlerXmlRpcTest.class);
//			fixture.add(TracAttachmentHandlerTest.class);
//		} else {
//			fixture.add(TracRepositoryConnectorWebTest.class);
//		}
//		fixture.done();
//	}

}

Back to the top