In Studio, annotation @Testers can be use to define an array of ModelTester to use in a Studio integration test. It allows us to define a set of tests for a specific context. For example, Studio JSF Build Test is a set of tests organized by testers.
As you can see, the code formatting is hard to understand, because of the number of the testers present inside the @Testers container.
Improve testers logic by introducing the Java 8 feature: repeatable annotations. Create a new annotation @Tester, which is the repeatable annotation type of container type @Testers. More precisely, 3 steps are required for such implementation:
- Declare a repeatable annotation type @Tester
- Change the existing annotation type @Testers into a containing annotation type.
- Change the mechanism of retrieving the annotations in abstract build test case.
And the future Studio JSF Build Test should look like: