Document when prepareTestInstance() is invoked by the SpringMethodRule

Closes gh-27305
This commit is contained in:
Sam Brannen
2021-08-22 15:54:35 +02:00
parent b28f403bf8
commit 7da7a976e6
5 changed files with 34 additions and 16 deletions

View File

@@ -1657,8 +1657,10 @@ before failing.
times that the test method is to be run is specified in the annotation.
The scope of execution to be repeated includes execution of the test method itself as
well as any setting up or tearing down of the test fixture. The following example shows
how to use the `@Repeat` annotation:
well as any setting up or tearing down of the test fixture. When used with the
<<testcontext-junit4-rules, `SpringMethodRule`>>, the scope additionally includes
preparation of the test instance by `TestExecutionListener` implementations. The
following example shows how to use the `@Repeat` annotation:
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
.Java