Stefan Seifert created SLING-11792:
--------------------------------------
Summary: osgi-mock, sling-mock: Allow mixture of plugins/callbacks
Key: SLING-11792
URL: https://issues.apache.org/jira/browse/SLING-11792
Project: Sling
Issue Type: Improvement
Components: Testing
Reporter: Stefan Seifert
Assignee: Stefan Seifert
Fix For: Testing Sling Mock 3.4.4, Testing OSGi Mock 3.3.6
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:
{code}
public final <T extends OsgiContextImpl> SlingContextBuilder plugin(@NotNull
ContextPlugin<T> @NotNull ... plugin)
{code}
it would be more flexible, to allow mixing plugins with any subtype in a single
row:
{code}
public final SlingContextBuilder plugin(@NotNull ContextPlugin<? extends
OsgiContextImpl> @NotNull ... plugin)
{code}
this applies to various methods of the \*ContextBuilder and Plugins
implementations.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)