Jörg,

On Mon, Dec 21, 2015 at 9:10 AM, Jörg Hoh <[email protected]> wrote:
>
> Hi Bertrand
>
> 2015-12-21 13:56 GMT+01:00 Bertrand Delacretaz <[email protected]>:
>
> >
> > Would the Sling mocks MockSlingHttpServletRequest and response work
> > for you? Or shall we maybe refactor them to inherit from new non-Sling
> > HttpServletRequest/Response mocks that are more generally usable?
> >
> > -Bertrand
> >
> > [1]
> > https://svn.apache.org/repos/asf/sling/trunk/testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/servlet/
> >
>
> These would be sufficient. But I would like to have them in a "mainline"
> bundle and not in a codebase, which I normally use to run unittests.
>
> Jörg

Bertrand's referenced code is a portion of the Sling project's "Sling
Mocks" module that gets released to maven as a jar like other Sling
modules.
See the documentation for Sling mocks at [1] for further detail on how
to add it to a maven project and example usages.

- Steven

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

Reply via email to