cmrockwell opened a new pull request #5: URL: https://github.com/apache/sling-org-apache-sling-junit-core/pull/5
As discussed on the dev email regarding "a way to disambiguate the service returned by @TestReference when there are multiple implementations of the interface" with the advice of "supporting the 'target' attribute that is also present in the SCR @Reference annotation. It accepts an LDAP filter expression as is commonly used in OSGi." This is already support from the rules/GetterService.java and was refactored such that classes under the annotations package can also use it. Tests for the @TestReference(String filter) are run via SlingAnnotationsTestRunner [0] [0] http://localhost:8080/system/sling/junit/org.apache.sling.junit.tests.TestReferenceJTest.html ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
