AuthenticationFilterTest
Tests
Test |
Method name |
Duration |
Result |
JSON 파싱 실패 → 400 |
badJson() |
0.002s |
passed |
AuthenticationManager 인증 실패(LoginException) → 401 |
loginException() |
0.003s |
passed |
POST가 아니면 405 반환 |
methodNotAllowed() |
0.002s |
passed |
password 누락 → 401 |
missingPassword() |
0.003s |
passed |
username 누락 → 401 |
missingUsername() |
0.003s |
passed |
매처 불일치 시 체인으로 그대로 진행 |
notMatched_chainContinues() |
0.002s |
passed |
성공 시 SecurityContextHolder에 저장하고 200 반환 |
success() |
0.034s |
passed |
예기치 못한 Exception → 400 |
unexpectedException() |
0.004s |
passed |