Skip to content

Commit

Permalink
Merge pull request #151 from CAUSOLDOUTMEN/fix/150-jwt-test-fix
Browse files Browse the repository at this point in the history
hotfix: 메소드 이름 변경에 의해 테스트 코드 수정
  • Loading branch information
win-luck authored Jan 24, 2024
2 parents ba06d10 + da1e49f commit 74743a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class FoodControllerTest {
void setUp() throws NoSuchFieldException, IllegalAccessException {
mockMvc = MockMvcBuilders.webAppContextSetup(webApplicationContext).build();
testUser.setId(testUserId);
when(jwtTokenProvider.validateToken(any(String.class))).thenReturn(true);
when(jwtTokenProvider.validateAccessToken(any(String.class))).thenReturn(true);
when(jwtTokenProvider.getUserPk(any(String.class))).thenReturn(testUserId);

Field foodId = Food.class.getDeclaredField("id");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class UserControllerTest {
void setUp() {
mockMvc = MockMvcBuilders.webAppContextSetup(webApplicationContext).build();
testUser.setId(testUserId);
when(jwtTokenProvider.validateToken(any(String.class))).thenReturn(true);
when(jwtTokenProvider.validateAccessToken(any(String.class))).thenReturn(true);
when(jwtTokenProvider.getUserPk(any(String.class))).thenReturn(testUserId);
when(userService.getSimpleUserInfo(any(Long.class)))
.thenReturn(ResponseSimpleUserDto.builder()
Expand Down

0 comments on commit 74743a8

Please sign in to comment.