|
10 | 10 |
|
11 | 11 | package org.junit.platform.engine.support.hierarchical;
|
12 | 12 |
|
13 |
| -import org.assertj.core.api.Condition; |
14 |
| -import org.junit.jupiter.api.*; |
15 |
| -import org.junit.jupiter.api.MethodOrderer.MethodName; |
16 |
| -import org.junit.jupiter.api.extension.AfterTestExecutionCallback; |
17 |
| -import org.junit.jupiter.api.extension.ExtendWith; |
18 |
| -import org.junit.jupiter.api.extension.ExtensionContext; |
19 |
| -import org.junit.jupiter.api.parallel.Execution; |
20 |
| -import org.junit.jupiter.api.parallel.Isolated; |
21 |
| -import org.junit.jupiter.api.parallel.ResourceLock; |
22 |
| -import org.junit.platform.engine.TestDescriptor; |
23 |
| -import org.junit.platform.engine.discovery.DiscoverySelectors; |
24 |
| -import org.junit.platform.engine.reporting.ReportEntry; |
25 |
| -import org.junit.platform.testkit.engine.EngineExecutionResults; |
26 |
| -import org.junit.platform.testkit.engine.EngineTestKit; |
27 |
| -import org.junit.platform.testkit.engine.Event; |
| 13 | +import static java.util.concurrent.TimeUnit.MILLISECONDS; |
| 14 | +import static java.util.stream.Collectors.toList; |
| 15 | +import static org.assertj.core.api.Assertions.assertThat; |
| 16 | +import static org.junit.jupiter.api.Assertions.assertEquals; |
| 17 | +import static org.junit.jupiter.api.Assertions.assertTrue; |
| 18 | +import static org.junit.jupiter.api.DynamicTest.dynamicTest; |
| 19 | +import static org.junit.jupiter.api.parallel.ExecutionMode.CONCURRENT; |
| 20 | +import static org.junit.jupiter.api.parallel.ExecutionMode.SAME_THREAD; |
| 21 | +import static org.junit.jupiter.engine.Constants.DEFAULT_CLASSES_EXECUTION_MODE_PROPERTY_NAME; |
| 22 | +import static org.junit.jupiter.engine.Constants.DEFAULT_PARALLEL_EXECUTION_MODE; |
| 23 | +import static org.junit.jupiter.engine.Constants.PARALLEL_CONFIG_FIXED_PARALLELISM_PROPERTY_NAME; |
| 24 | +import static org.junit.jupiter.engine.Constants.PARALLEL_CONFIG_FIXED_TEST_EXECUTOR_PROPERTY_NAME; |
| 25 | +import static org.junit.jupiter.engine.Constants.PARALLEL_CONFIG_STRATEGY_PROPERTY_NAME; |
| 26 | +import static org.junit.jupiter.engine.Constants.PARALLEL_EXECUTION_ENABLED_PROPERTY_NAME; |
| 27 | +import static org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder.request; |
| 28 | +import static org.junit.platform.testkit.engine.EventConditions.container; |
| 29 | +import static org.junit.platform.testkit.engine.EventConditions.event; |
| 30 | +import static org.junit.platform.testkit.engine.EventConditions.finishedSuccessfully; |
| 31 | +import static org.junit.platform.testkit.engine.EventConditions.finishedWithFailure; |
| 32 | +import static org.junit.platform.testkit.engine.EventConditions.started; |
| 33 | +import static org.junit.platform.testkit.engine.EventConditions.test; |
| 34 | +import static org.junit.platform.testkit.engine.EventConditions.type; |
| 35 | +import static org.junit.platform.testkit.engine.EventType.REPORTING_ENTRY_PUBLISHED; |
28 | 36 |
|
29 | 37 | import java.net.URL;
|
30 | 38 | import java.net.URLClassLoader;
|
|
40 | 48 | import java.util.stream.IntStream;
|
41 | 49 | import java.util.stream.Stream;
|
42 | 50 |
|
43 |
| -import static java.util.concurrent.TimeUnit.MILLISECONDS; |
44 |
| -import static java.util.stream.Collectors.toList; |
45 |
| -import static org.assertj.core.api.Assertions.assertThat; |
46 |
| -import static org.junit.jupiter.api.Assertions.assertEquals; |
47 |
| -import static org.junit.jupiter.api.Assertions.assertTrue; |
48 |
| -import static org.junit.jupiter.api.DynamicTest.dynamicTest; |
49 |
| -import static org.junit.jupiter.api.parallel.ExecutionMode.CONCURRENT; |
50 |
| -import static org.junit.jupiter.api.parallel.ExecutionMode.SAME_THREAD; |
51 |
| -import static org.junit.jupiter.engine.Constants.*; |
52 |
| -import static org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder.request; |
53 |
| -import static org.junit.platform.testkit.engine.EventConditions.*; |
54 |
| -import static org.junit.platform.testkit.engine.EventType.REPORTING_ENTRY_PUBLISHED; |
| 51 | +import org.assertj.core.api.Condition; |
| 52 | +import org.junit.jupiter.api.AfterEach; |
| 53 | +import org.junit.jupiter.api.BeforeAll; |
| 54 | +import org.junit.jupiter.api.DynamicTest; |
| 55 | +import org.junit.jupiter.api.MethodOrderer.MethodName; |
| 56 | +import org.junit.jupiter.api.Nested; |
| 57 | +import org.junit.jupiter.api.RepeatedTest; |
| 58 | +import org.junit.jupiter.api.Test; |
| 59 | +import org.junit.jupiter.api.TestFactory; |
| 60 | +import org.junit.jupiter.api.TestMethodOrder; |
| 61 | +import org.junit.jupiter.api.TestReporter; |
| 62 | +import org.junit.jupiter.api.extension.AfterTestExecutionCallback; |
| 63 | +import org.junit.jupiter.api.extension.ExtendWith; |
| 64 | +import org.junit.jupiter.api.extension.ExtensionContext; |
| 65 | +import org.junit.jupiter.api.parallel.Execution; |
| 66 | +import org.junit.jupiter.api.parallel.Isolated; |
| 67 | +import org.junit.jupiter.api.parallel.ResourceLock; |
| 68 | +import org.junit.platform.engine.TestDescriptor; |
| 69 | +import org.junit.platform.engine.discovery.DiscoverySelectors; |
| 70 | +import org.junit.platform.engine.reporting.ReportEntry; |
| 71 | +import org.junit.platform.testkit.engine.EngineExecutionResults; |
| 72 | +import org.junit.platform.testkit.engine.EngineTestKit; |
| 73 | +import org.junit.platform.testkit.engine.Event; |
55 | 74 |
|
56 | 75 | class FixedThreadsParallelExecutionIntegrationTests {
|
57 | 76 |
|
|
0 commit comments