I want to create a Spring Boot test for a Controller-class.
The method I want to test is:
private String statusQueryToken; @RequestMapping("/onCompletion") public String whenSigningComplete(@RequestParam("status_query_token") String token){ this.statusQueryToken = token; I am unsure about how to test things in Spring Boot.
If I wanted to test that the field statusQueryToken has been initialized with the @RequestParam("status_query_token"), how would I go about doing this?
Thank you!