How to write a Junit5 Test case for resource resolver admin user ? | Community
Skip to main content
Level 2
March 24, 2021

How to write a Junit5 Test case for resource resolver admin user ?

  • March 24, 2021
  • 1 reply
  • 766 views

I have a admin user who is trying to get client id from osgi config. How can I write a Mock Junit5 test case for user and client id?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Kiran_Vedantam
Community Advisor
Community Advisor
March 25, 2021

Hi @gbaweja,

 

As per adobe's recommendations, it is not suggested to use the admin user. Please create a system/service user for retrieving the session. More info on system/service user is available here.

 

For mocking the service user, check the similar question here.

 

Hope this helps.

 

Thanks,

Kiran Vedantam.

gbawejaAuthor
Level 2
March 25, 2021
Hi @kiran_vedantam thank you for your reply. I am sorry I meant system user only and this is for Junit5. The link you shared above looks like is for Junit4. Do you have any suggestions for Junit5?