Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
the OsgiContextBuilder and SlingContextBuilder provides methods to add an array of plugins or callbacks to customize the test execution. the current generic annotations allows only a list of plugins using the same subtype of the context:
public final <T extends OsgiContextImpl> SlingContextBuilder plugin(@NotNull ContextPlugin<T> @NotNull ... plugin)
it would be more flexible, to allow mixing plugins with any subtype in a single row:
public final SlingContextBuilder plugin(@NotNull ContextPlugin<? extends OsgiContextImpl> @NotNull ... plugin)
this applies to various methods of the *ContextBuilder and Plugins implementations.