Hi,

I'm writing some unit tests for my code and am trying to use Sling Mocks [1].

My code sets properties using resource.adaptTo(ModifiableValueMap.class), but 
when used with a MockResource, the call returns null, failing the test.  Is 
there a recommended way to code unit tests for such cases?

Thanks!  John

[1] https://sling.apache.org/documentation/development/sling-mock.html

Reply via email to