diff --git a/src/test/java/com/diareat/diareat/controller/FoodControllerTest.java b/src/test/java/com/diareat/diareat/controller/FoodControllerTest.java index f1c88c3..992a01e 100644 --- a/src/test/java/com/diareat/diareat/controller/FoodControllerTest.java +++ b/src/test/java/com/diareat/diareat/controller/FoodControllerTest.java @@ -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"); diff --git a/src/test/java/com/diareat/diareat/controller/UserControllerTest.java b/src/test/java/com/diareat/diareat/controller/UserControllerTest.java index d66e452..cb26ebc 100644 --- a/src/test/java/com/diareat/diareat/controller/UserControllerTest.java +++ b/src/test/java/com/diareat/diareat/controller/UserControllerTest.java @@ -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()