SLING-12157 [osgi-mock] late binding does not work for non-service DS components

- OsgiServiceUtilBindUnbindTest seems to have worked around this issue, hence the change
- factored out "registerDSComponent" in order to reduce code duplication
- with this fix, a non-service DS component is stored in MockBundleContext#registeredServices
  but its MockServiceRegistration#clazzes field is an empty set and thus cannot be retrieved
  via BundleContext#getServiceReference
2 files changed
tree: c47cd7ac230ebd76dbaf4ea0beaff1133df6b7bc
  1. core/
  2. junit4/
  3. junit5/
  4. parent/
  5. relocate/
  6. test-services/
  7. .asf.yaml
  8. .gitignore
  9. CODE_OF_CONDUCT.md
  10. CONTRIBUTING.md
  11. Jenkinsfile
  12. LICENSE
  13. pom.xml
  14. README.md
README.md

Apache Sling

Build Status Test Status Coverage Sonarcloud Status testing License

Apache Sling Testing OSGi Mock

This module is part of the Apache Sling project.

Mock implementation of selected OSGi APIs.

Documentation: http://sling.apache.org/documentation/development/osgi-mock.html