Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Unit testing a Sling Servlet

Avatar

Avatar
Validate 1
Level 2
sutty1000
Level 2

Likes

3 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
sutty1000
Level 2

Likes

3 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
sutty1000
Level 2

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
Validate 1
Level 2
sutty1000
Level 2

Likes

3 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
sutty1000
Level 2

Likes

3 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
sutty1000
Level 2

06-01-2017

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