Skip to content

Commit

Permalink
Avoid test compile-time dependency on junit-jupiter-engine
Browse files Browse the repository at this point in the history
Issue: SPR-17533
  • Loading branch information
sbrannen committed Nov 23, 2018
1 parent fedbb09 commit 58cde3c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

import static org.junit.jupiter.api.Assertions.*;
import static org.junit.jupiter.engine.Constants.*;
import static org.junit.platform.engine.discovery.DiscoverySelectors.*;
import static org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder.*;

Expand All @@ -55,8 +54,8 @@ void runTestsInParallel() {
launcher.registerTestExecutionListeners(listener);

LauncherDiscoveryRequest request = request()//
.configurationParameter(PARALLEL_EXECUTION_ENABLED_PROPERTY_NAME, "true")//
.configurationParameter(PARALLEL_CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME, "10")//
.configurationParameter("junit.jupiter.execution.parallel.enabled", "true")//
.configurationParameter("junit.jupiter.execution.parallel.config.dynamic.factor", "10")//
.selectors(selectClass(TestCase.class))//
.build();

Expand Down

0 comments on commit 58cde3c

Please sign in to comment.