File tree 3 files changed +41
-0
lines changed 3 files changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ package junit5 ;
2
+
3
+ import org .junit .jupiter .api .Test ;
4
+
5
+ public class FirstParallelUnitTest {
6
+ @ Test
7
+ public void first () throws Exception {
8
+ System .out .println ("FirstParallelUnitTest first() start => " + Thread .currentThread ().getName ());
9
+ Thread .sleep (500 );
10
+ System .out .println ("FirstParallelUnitTest first() end => " + Thread .currentThread ().getName ());
11
+ }
12
+
13
+ @ Test
14
+ public void second () throws Exception {
15
+ System .out .println ("FirstParallelUnitTest second() start => " + Thread .currentThread ().getName ());
16
+ Thread .sleep (500 );
17
+ System .out .println ("FirstParallelUnitTest second() end => " + Thread .currentThread ().getName ());
18
+ }
19
+ }
Original file line number Diff line number Diff line change
1
+ package junit5 ;
2
+
3
+ import org .junit .jupiter .api .Test ;
4
+
5
+ public class SecondParallelUnitTest {
6
+ @ Test
7
+ public void first () throws Exception {
8
+ System .out .println ("SecondParallelUnitTest first() start => " + Thread .currentThread ().getName ());
9
+ Thread .sleep (500 );
10
+ System .out .println ("SecondParallelUnitTest first() end => " + Thread .currentThread ().getName ());
11
+ }
12
+
13
+ @ Test
14
+ public void second () throws Exception {
15
+ System .out .println ("SecondParallelUnitTest second() start => " + Thread .currentThread ().getName ());
16
+ Thread .sleep (500 );
17
+ System .out .println ("SecondParallelUnitTest second() end => " + Thread .currentThread ().getName ());
18
+ }
19
+ }
Original file line number Diff line number Diff line change
1
+ junit.jupiter.execution.parallel.enabled = true
2
+ junit.jupiter.execution.parallel.mode.default = concurrent
3
+ junit.jupiter.execution.parallel.mode.classes.default = concurrent
You can’t perform that action at this time.
0 commit comments