jeudi 5 décembre 2019

Creating and Passing HttpRequest object to Spring Boot controller from Integration test using resttemplate.exchange

I have a controller , the post endpoint of which uses the request.getRemoteUser() to pass on the logged in user details to the service layer... I need to perform integration testing on this endpoint . The question is : how can I pass the HttpRequest Object to the Post endpoint .

Aucun commentaire:

Enregistrer un commentaire