[ https://issues.apache.org/jira/browse/SLING-9680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17181826#comment-17181826 ]
Konrad Windszus commented on SLING-9680: ---------------------------------------- I see that my {{MockSlingHttpServletRequest}} has {{MockSlingBindings}} injected in the right request attribute, however I don't see any {{BindingsValuesProvider}} being considered. How can I easily add those values as well to the request attribute when I want to test my Sling Model which is leveraging the {{org.apache.sling.models.impl.injectors.BindingsInjector}}? > Sling Mocks: Add easy way to inject SlingBindings into > MockSlingHttpServletRequest > ---------------------------------------------------------------------------------- > > Key: SLING-9680 > URL: https://issues.apache.org/jira/browse/SLING-9680 > Project: Sling > Issue Type: Improvement > Components: Testing > Affects Versions: Testing Sling Mock 2.5.0 > Reporter: Konrad Windszus > Priority: Major > > As SlingBindings are often crucial when dealing with Sling Models there > should be an easy way to set them for a mocked request > (https://sling.apache.org/documentation/development/sling-mock.html#slinghttpservletrequest) > A dedicated method which automatically fills the SlingBindings with the > mandatory stuff and another one to add additional bindings would be very > helpful. > Also injecting values from all registered {{BindingsValuesProvider}} with a > specific context would be useful. -- This message was sent by Atlassian Jira (v8.3.4#803005)