Spring Boot 3 Paid Course Published for Free
on my Java Guides YouTube Channel
Subscribe to my YouTube Channel (165K+ subscribers):
Java Guides Channel
Top 10 My Udemy Courses with Huge Discount:
Udemy Courses - Ramesh Fadatare
how to write a test class for the servlet using doGet()
ReplyDeletecan you please help me in this
You can use mockito to write test class for servlets. Only using junit I think it is not possible because servlets requires container to run the servlets. Check out this link. Let me know if it not help then we will try different approach:
ReplyDeletehttps://stackoverflow.com/questions/5434419/how-to-test-my-servlet-using-junit
how to generate test reports using junit4 ??
ReplyDelete