Expand my Community achievements bar.

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 

 

3 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

Avatar

Level 1

Hi did you find any solution? I'm seeing same error