How to pass parameters to post method in Spring MVC controller while doing junit?
问题 I am doing unit testing on my Spring MVC controller methods. Below is my method which I am trying to unit test as it is working fine when I start my server. Whenever I will be hitting index page it will show me three text box on the browser in which I am typing the data and pressing the submit button and then the call goes to addNewServers with the proper values. Now I need to unit test the same thing: @RequestMapping(value = "/index", method = RequestMethod.GET) public Map<String, String>