Skip to content

Commit

Permalink
Enhance user guide
Browse files Browse the repository at this point in the history
  • Loading branch information
scordio committed Jul 15, 2023
1 parent 24ebcc4 commit e56a054
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions documentation/src/docs/asciidoc/user-guide/writing-tests.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2672,6 +2672,11 @@ The following example demonstrates how to use the custom `@JimfsTempDir` annotat
include::{testDir}/example/TempDirectoryDemo.java[tags=user_guide_composed_annotation_usage]
----

Meta-annotations or additional annotations on the field or parameter the `TempDir`
annotation is declared on might expose additional attributes to configure the factory.
Such annotations and related attributes can be accessed via the `AnnotatedElementContext`
parameter of `createTempDirectory`.

You can use the `junit.jupiter.tempdir.factory.default`
<<running-tests-config-params, configuration parameter>> to specify the fully qualified
class name of the `TempDirFactory` you would like to use by default. Just like for
Expand Down

0 comments on commit e56a054

Please sign in to comment.