Skip to content

Commit

Permalink
test: 로그아웃 API 테스트 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
youKeon committed Nov 7, 2023
1 parent 0f6a566 commit 414263e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,9 @@ public void logoutTest() throws Exception {

// when
when(tokenProvider.validateToken(request.getAccessToken())).thenReturn(true);
when(tokenProvider.getAuthentication(request.getAccessToken())).thenReturn(authentication);
when(authentication.getName()).thenReturn(member.getEmail());
when(refreshTokenRepository.findByEmail(member.getEmail())).thenReturn(refreshToken);
when(tokenProvider.getExpiration(request.getAccessToken())).thenReturn(100000L);
when(tokenProvider.getEmailInAuthentication(request.getAccessToken())).thenReturn(member.getEmail());

// then
assertDoesNotThrow(() -> authService.logout(request));
Expand Down

0 comments on commit 414263e

Please sign in to comment.