I'm using Spring MVC Framework and I want to test my Controllers with JUnit. How should I mock POST or GET parameters of a Controller and how will I access the Model's attributes to check its content? My Controller's signature is the following:
@RequestMapping(value="/findings", method=RequestMethod.POST)
public String findUsers(@RequestParam("userInput") String userInput, Model m)
Aucun commentaire:
Enregistrer un commentaire