Solved
How to mock SlingSettingsService run modes in Junit5?
I am trying to Mock SlingSettingsService with run modes in Junit5.
In my h.java file, in Activate method I have.
srun = slingSettingsService.getRunModes().contains("runMode");
How do I mock this in my htest.java file? This is for Junit5.