Search in sources :

Example 6 with ParallelComputer

use of org.junit.experimental.ParallelComputer in project spring-framework by spring-projects.

the class SpringJUnit4ConcurrencyTests method runAllTestsConcurrently.

@Test
public void runAllTestsConcurrently() throws Exception {
    final int FAILED = 0;
    final int ABORTED = 0;
    final int IGNORED = countAnnotatedMethods(Ignore.class);
    final int TESTS = countAnnotatedMethods(Test.class) - IGNORED;
    runTestsAndAssertCounters(new ParallelComputer(true, true), TESTS, FAILED, TESTS, IGNORED, ABORTED, this.testClasses);
}
Also used : Test(org.junit.Test) ParallelComputer(org.junit.experimental.ParallelComputer) Test(org.junit.Test)

Aggregations

ParallelComputer (org.junit.experimental.ParallelComputer)6 Test (org.junit.Test)3 Test (org.junit.jupiter.api.Test)2 Example1IntegrationTest (com.baeldung.Example1IntegrationTest)1 Example2IntegrationTest (com.baeldung.Example2IntegrationTest)1 IOException (java.io.IOException)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1 AfterClass (org.junit.AfterClass)1 BeforeClass (org.junit.BeforeClass)1 Result (org.junit.runner.Result)1 Failure (org.junit.runner.notification.Failure)1 RunListener (org.junit.runner.notification.RunListener)1 RunNotifier (org.junit.runner.notification.RunNotifier)1 InOrder (org.mockito.InOrder)1