Yup, you can also get some inspiration from the aem-stubs from Cognifide:

https://github.com/Cognifide/aem-stubs <https://github.com/Cognifide/aem-stubs>

Not sure if there is any actual dependency on AEM for that one



> On 1 Dec 2020, at 10:39, Bertrand Delacretaz <bdelacre...@apache.org> wrote:
> 
> Hi,
> 
> On Tue, Dec 1, 2020 at 10:24 AM Stefan Seifert <sseif...@pro-vision.de> wrote:
>> ...maybe wiremock? it does real HTTP communication but neatly integrated in 
>> junit (i've not tried to use it with JUnit 5).
>> https://github.com/tomakehurst/wiremock ...
> 
> I've been using wiremock in Sling,
> https://github.com/apache/sling-org-apache-sling-junit-teleporter/blob/master/src/test/java/org/apache/sling/testing/teleporter/client/TeleporterHttpClientTest.java
> and like it!
> 
> Note that that code is from 5 years ago, there's probably been
> improvements in the meantime.
> 
> -Bertrand

Reply via email to