Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 22fb7e6ae1fb9f0f7deec9b05b20b9a7b5b2ee5f (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
/*****************************************************************************
 * Copyright (c) 2016 Christian W. Damus 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:
 *   Christian W. Damus - Initial API and implementation
 *   
 *****************************************************************************/

package org.eclipse.papyrus.tests;

import java.util.List;
import java.util.stream.Collectors;

import org.eclipse.papyrus.junit.framework.runner.AllTestsRunner;
import org.eclipse.papyrus.junit.framework.runner.Headless;
import org.eclipse.papyrus.junit.framework.runner.ITestSuiteClass;
import org.eclipse.papyrus.junit.framework.runner.SuiteSpot;
import org.junit.runner.RunWith;

/**
 * A test suite that automatically selects all {@linkplain Headless headless tests}
 * from the {@link AllTests} suite.
 */
@RunWith(AllTestsRunner.class)
public class AllHeadlessTests {

	@SuiteSpot
	public static final List<ITestSuiteClass> suiteClasses;

	static {
		suiteClasses = AllTests.suiteClasses.stream()
				.filter(ITestSuiteClass::isHeadless)
				.collect(Collectors.toList());
	}

	public AllHeadlessTests() {
		super();
	}

}

Back to the top