Unit test(using osgi-mock.junit5) to read osgi config fails to build
Unit test fails with message
org.apache.sling.testing.mock.osgi.NoScrMetadataException: No OSGi SCR metadata found for class
I have written a unit test using OSGi-mock-junit5 but when I try to build the project(mvn clean install), I get the failure message "org.apache.sling.testing.mock.osgi.NoScrMetadataException: No OSGi SCR metadata found for class"
I found similar post https://cqdump.wordpress.com/2019/01/14/writing-unit-tests-for-aem-part-2-maven-setup/ & followed the steps to fix it but it's still the same issue.
anyone has got any idea?
Thanks in advance!