Unit testing a Sling Servlet

Avatar

Avatar

sutty1000

Avatar

sutty1000

sutty1000

06-01-2017

I'm trying to unit test my class that extends the SlingAllMethodsServlet class and having a hard time! I want to check the result of my doGet method (which has a void return type) I need to check what has been written into the PrintWriter does anybody have experience trying to do this?

View Entire Topic

Avatar

Avatar

sutty1000

Avatar

sutty1000

sutty1000

06-01-2017

Great thanks, looks like it will be exactly what I'm after! 🙂