Skip to content

Commit d43ecd5

Browse files
committed
test[#310]: 테스트케이스 수정
1 parent fb629c1 commit d43ecd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/com/sillim/recordit/config/security/handler/AuthenticationExceptionHandlerTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ void responseAuthenticationException() throws IOException {
5050
@DisplayName("ApplicationException 처리 시 response가 commit되어 있다면 출력되지 않는다.")
5151
void notWriteIfApplicationExceptionResponseCommitted() throws IOException {
5252
MockHttpServletResponse httpServletResponse = new MockHttpServletResponse();
53-
ApplicationException exception = new ApplicationException(ErrorCode.UNHANDLED_EXCEPTION);
53+
AuthenticationException exception =
54+
new InsufficientAuthenticationException("인증이 필요한 URI입니다.");
5455
httpServletResponse.setCommitted(true);
5556

5657
authenticationExceptionHandler.handle(httpServletResponse, exception);

0 commit comments

Comments
 (0)