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


1 weeks ago


7 time


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