Test spring rest controller secured with https
问题 Can anybody provide me with a code sample to write integration test for a controller which is secured with HTTPS?? With HTTP I am able to write, but with HTTPS I am getting certification error. Controller @RestController @RequestMapping("/rest/otm/v1") public class LoginController { @Autowired UserAuthenticationService userAuthService; @ExceptionHandler({ AuthenticationFailedException.class}) @RequestMapping(value = "/login", method = RequestMethod.POST) @ResponseBody public void login