We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb629c1 commit d43ecd5Copy full SHA for d43ecd5
src/test/java/com/sillim/recordit/config/security/handler/AuthenticationExceptionHandlerTest.java
@@ -50,7 +50,8 @@ void responseAuthenticationException() throws IOException {
50
@DisplayName("ApplicationException 처리 시 response가 commit되어 있다면 출력되지 않는다.")
51
void notWriteIfApplicationExceptionResponseCommitted() throws IOException {
52
MockHttpServletResponse httpServletResponse = new MockHttpServletResponse();
53
- ApplicationException exception = new ApplicationException(ErrorCode.UNHANDLED_EXCEPTION);
+ AuthenticationException exception =
54
+ new InsufficientAuthenticationException("인증이 필요한 URI입니다.");
55
httpServletResponse.setCommitted(true);
56
57
authenticationExceptionHandler.handle(httpServletResponse, exception);
0 commit comments