Skip to content

Commit

Permalink
🚑 hotfix: 메소드 이름 변경에 의해 테스트 코드 수정 (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
synoti21 committed Jan 24, 2024
1 parent ba06d10 commit da1e49f
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 da1e49f

Please sign in to comment.