Error creating object MockHttpServletResponse for unit testing

后端 未结 3 2089
甜味超标
甜味超标 2021-01-12 17:07
  1. I was trying to write unit test for Servlet using sprint-test using mock object

  2. my maven dependency is:

    
       
    
            
3条回答
  •  无人及你
    2021-01-12 17:55

    I need to replace dependency for javaee-api with javax.selvlet-api as below:

    
      javax.servlet
      javax.servlet-api
      3.1.0
    
    

提交回复
热议问题