This module is part of the Apache Sling project.
Runs JUnit tests in an OSGi framework and provides the JUnit/Hamcrest APIs used by remote test bundles.
Use Maven from the repository root:
mvn -B -ntp clean package
mvn -B -ntp test
mvn -B -ntp clean verify
Notes:
verify is heavier than test because it also runs Maven Invoker integration tests from src/it.src/it/annotations-it directly requires -Dannotations.bundle.version=<version>.src/main/java - Bundle APIs and implementation.src/main/resources - Static resources (for example junit.css).src/test/java - Unit tests (JUnit 4 and JUnit 5).src/it/annotations-it - Integration tests (Maven Invoker / Pax Exam).bnd.bnd - OSGi manifest instructions, including exported JUnit/Hamcrest packages.jakarta.json-api (migration from javax.json).org.apache.commons:commons-lang3 3.18.0.