Add user test.

This commit is contained in:
Paulo Gustavo Veiga
2024-02-04 17:21:51 -08:00
parent 9382fc2995
commit a681cf9b90
6 changed files with 115 additions and 12 deletions

View File

@@ -69,7 +69,7 @@ public class AdminController extends BaseController {
@RequestMapping(method = RequestMethod.POST, value = "/users", consumes = {"application/json"}, produces = {"application/json"})
@ResponseStatus(value = HttpStatus.CREATED)
public void createUser(@RequestBody RestUser user, HttpServletResponse response) throws WiseMappingException {
public void createUser(@RequestBody RestUser user, final HttpServletResponse response) throws WiseMappingException {
if (user == null) {
throw new IllegalArgumentException("User could not be found");
}