Skip to content

Commit faf0212

Browse files
committed
Hide copyright header and imports in ExplicitExecutionModeDemo
1 parent 50d8887 commit faf0212

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

documentation/src/docs/asciidoc/user-guide/writing-tests.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3322,7 +3322,7 @@ test class or method:
33223322

33233323
[source,java]
33243324
----
3325-
include::{testDir}/example/ExplicitExecutionModeDemo.java[]
3325+
include::{testDir}/example/ExplicitExecutionModeDemo.java[tags=user_guide]
33263326
----
33273327

33283328
This allows test classes or methods to opt in or out of concurrent execution regardless of

documentation/src/test/java/example/ExplicitExecutionModeDemo.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import org.junit.jupiter.api.parallel.Execution;
1515
import org.junit.jupiter.api.parallel.ExecutionMode;
1616

17+
//tag::user_guide[]
1718
@Execution(ExecutionMode.CONCURRENT)
1819
class ExplicitExecutionModeDemo {
1920

@@ -27,4 +28,6 @@ void testA() {
2728
void testB() {
2829
// overrides to same_thread
2930
}
31+
3032
}
33+
//end::user_guide[]

0 commit comments

Comments
 (0)