TempDirectory extension: is there a replacement for createInCustomDirectory() methods?

Refresh

1 weeks ago

Views

7 time

1

There used to be createInCustomDirectory() methods in TempDirectory extension class in JUnit 5.4.0-M1 (see docs). The main use case for those methods was to change tmp dir used by the extension. In the final release (5.4.0) TempDirectory extension was made private and enabled by default and those methods are not available anymore.

I wonder if there is another way to change root dir for all @TempDir directories?

0 answers