[
https://issues.apache.org/jira/browse/SLING-5039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bertrand Delacretaz resolved SLING-5039.
----------------------------------------
Resolution: Fixed
Implemented in 1703635 - the new OSGiService rule can be used like this in
server-side tests:
{code}
@Rule
public OSGiService<ConfigurationAdmin>
configAdminService =
OSGiService.ofClass(ConfigurationAdmin.class);
...
configAdminService.get().getConfiguration(pid));
{code}
> Provide a variant of the junit.core Service annotation that uses generics
> -------------------------------------------------------------------------
>
> Key: SLING-5039
> URL: https://issues.apache.org/jira/browse/SLING-5039
> Project: Sling
> Issue Type: Improvement
> Components: Testing
> Affects Versions: JUnit Core 1.0.10
> Reporter: Bertrand Delacretaz
> Assignee: Bertrand Delacretaz
> Priority: Minor
> Fix For: JUnit Core 1.0.12
>
>
> That rule can be made easier to use with generics, but we need to keep it for
> backwards compatibility. I'll create a variant that uses generics.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)