commit | 9b71389c928d482df038ebd635350183cb76a17f | [log] [tgz] |
---|---|---|
author | Cris Rockwell <cris@apache.org> | Sun Dec 06 13:43:54 2020 -0500 |
committer | GitHub <noreply@github.com> | Sun Dec 06 13:43:54 2020 -0500 |
tree | 1765ca1e47a523fbdc8f7188278094b0a8591c33 | |
parent | 69339e3f5aafd03b4b8eac5a07ee64a0d51097ba [diff] |
Sling 9915 support for sling annotations test runner (#5) * SLING-9915 Remove deprecated flags * SLING-9915 Refactored ServiceGetter.java and made public such that it can be used by AnnotationsProcessor.java * SLING-9915 Added filter() method to TestReference interface * Added tests for TestReference(String filter) * Update AnnotationsProcessor::processTestReference to get the filter passed to the TestReference annotation, and call getService(Class<?> c, String filter) which now uses ServiceGetter * update package version to 1.2.0 as per bnd-baseline-maven-plugin recommendation * Moved ServiceGetter.java to org.apache.sling.junit.impl package * change TestReference second parameter to be called target (not filter) * When using ServiceGetters, make sure to execute close method after the tests * Refactored AnnotationsProcessor::getService since ServiceGetter handles edge-cases * fixes for sonarcloud code smells * WIP: Started integration tests for @TestReference. Not working. * WIP: Fix integration tests * WIP Continued PAX-style test for TestReference annotation * WIP continued - fix integration tests setup * Updated README with more detailed instructions for debugging * Unget services provided by @TestReference for every test executed by a SlingAnnotationsTestRunner instance * update per review notes 12/2/2020 * updated parent to sling-bundle-parent v40 * removed unused import Co-authored-by: Bertrand Delacretaz <bdelacretaz@apache.org> Merging to master based on the PR approval from jsedding and input on the dev email 12/5/2020.
This module is part of the Apache Sling project.
Runs JUnit tests in an OSGi framework and provides the JUnit libraries