Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Unit test using junit 5 No OSGi SCR metadata found

Avatar

Level 4

Hi All,

 

I have created recently a project using maven archetype 26. I am using bnd-maven-plugin not maven-bundle-plugin in the project.

I am getting org.apache.sling.testing.mock.osgi.NoScrMetadataException: No OSGi SCR metadata found for class error while running unit test.

The META-INF and OSGI-INF folders with meta data is generated. Does anyone has faced this issue?

@Jörg_Hoh

@kautuk_sahni 

 

2 Replies

Avatar

Community Advisor

Hi @subrato_kha 

Kindly check here if it helps you, I remember, I did something related to Unit Test.

 

https://github.com/sansai2011/klick/pull/2

 

Regards,

Santosh

Avatar

Level 4

thanks for the reply but this is not the issue. nor this changes fixes anything