Date of Release: ❓
Scope: ❓
For a complete list of all closed issues and pull requests for this release, consult the 5.9.3 milestone page in the JUnit repository on GitHub.
-
Parameter types for local
@MethodSource
factory method names are now validated. For example,@MethodSource("myFactory(example.NonexistentType)")
will now result in an exception stating thatexample.NonexistentType
cannot be resolved to a valid type. -
The syntax for parameter types in local
@MethodSource
factory method names now supports canonical array names — for example, you may now specifyint[]
as in@MethodSource("myFactory(int[])"
instead of the binary name[I
as in@MethodSource("myFactory([I)"
(which was already supported) and@MethodSource("myFactory(java.lang.String[])
instead of@MethodSource("myFactory([Ljava.lang.String;)
. -
Exceptions thrown for undeletable files when cleaning up a temporary directory created via
@TempDir
now include the root cause. -
Allow lifecycle methods to be declared as
private
again for backwards compatibility but document it as a discouraged practice.