JUnit 4 Tutorial

Comments

  1. how to write a test class for the servlet using doGet()
    can you please help me in this

    ReplyDelete
  2. 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:
    https://stackoverflow.com/questions/5434419/how-to-test-my-servlet-using-junit

    ReplyDelete
  3. how to generate test reports using junit4 ??

    ReplyDelete

Post a Comment

Leave Comment