Skip to main content
summaryrefslogtreecommitdiffstats
blob: 59ef19a30be61bd71a03fd42d48769724bd9ba75 (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
/*******************************************************************************
 * Copyright (c) 2007 Oracle. 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:
 *     Oracle - initial API and implementation
 ******************************************************************************/
package org.eclipse.jpt.core.tests.internal;

import junit.framework.Test;
import junit.framework.TestSuite;
import org.eclipse.jpt.core.tests.internal.content.java.mappings.JptCoreContentJavaMappingsTests;
import org.eclipse.jpt.core.tests.internal.jdtutility.JptCoreJdtUtilityTests;
import org.eclipse.jpt.core.tests.internal.model.JptCoreModelTests;
import org.eclipse.jpt.core.tests.internal.platform.JptCorePlatformTests;

/**
 * Runs all JPT Core Tests.  Currently we do not have a jpa.jar checked in to cvs. 
 * As a result we cannot run any tests that depend on that jar during the build.  In
 * our dev environments we should run JptAllCoreTests until we have jpa.jar checked in.
 * In the build we should continue to run JptCoreTests.
 */
public class JptAllCoreTests {

	public static Test suite() {
		return suite(true);
	}
	
	public static Test suite(boolean all) {
		String quantity = all ? "All" : "Most";
		TestSuite suite = new TestSuite(quantity + " JPT Core Tests");
		suite.addTest(JptCoreContentJavaMappingsTests.suite(all));
		suite.addTest(JptCoreModelTests.suite(all));
		suite.addTest(JptCoreJdtUtilityTests.suite(all));
		suite.addTest(JptCorePlatformTests.suite(all));
		return suite;
	}
	
	private JptAllCoreTests() {
		super();
		throw new UnsupportedOperationException();
	}

}

Back to the top