Problem:
No problem is found in this test. This is a refactoring suggestion that simplifies test design by eliminating a repetition structure whose increment was not being used during the repetition and can be replaced by an annotation.
Solution:
The @RepeatedTest
annotation provides the total number of repetitions desired. Each invocation of a repeated test behaves like the execution of a regular @Test
method with full support for the same lifecycle callbacks and extensions, which improves test design, eases future maintenance activities when needed, and better informs which repetition failed.
Comment From: sbrannen
As the author of @RepeatedTest
, it was my pleasure to merge your first PR for the Spring Framework.
Thanks