Skip to content

Commit c5ef96d

Browse files
committed
Docs updates for test classloading
1 parent 4e95c7e commit c5ef96d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/src/main/asciidoc/getting-started-testing.adoc

+5-3
Original file line numberDiff line numberDiff line change
@@ -457,9 +457,6 @@ org.acme.getting.started.testing.MyQuarkusTestBeforeEachCallback
457457

458458
TIP: It is possible to read annotations from the test class or method to control what the callback shall be doing.
459459

460-
WARNING: While it is possible to use JUnit Jupiter callback interfaces like `BeforeEachCallback`, you might run into classloading issues because Quarkus has
461-
to run tests in a custom classloader which JUnit is not aware of.
462-
463460
[[testing_different_profiles]]
464461
== Testing Different Profiles
465462

@@ -705,6 +702,11 @@ match the value of `quarkus.test.profile.tags`.
705702
* `quarkus.test.profile.tags=test2,test3`: In this case only `MultipleTagsTest` will be run because `MultipleTagsTest` is the only `QuarkusTestProfile` implementation whose `tags` method
706703
matches the value of `quarkus.test.profile.tags`.
707704

705+
== Nested Tests
706+
707+
JUnit 5 https://junit.org/junit5/docs/current/user-guide/#writing-tests-nested[@Nested tests] may help to structure more complex test scenarios.
708+
However, note that it is not possible to assign different test profiles or resources to nested tests within the same parent class.
709+
708710
== Mock Support
709711

710712
Quarkus supports the use of mock objects using two different approaches. You can either use CDI alternatives to

0 commit comments

Comments
 (0)