From da1e49fdc67dbb2b76645e3ae2f5b082944974bb Mon Sep 17 00:00:00 2001 From: Ahn Jiwan Date: Wed, 24 Jan 2024 20:17:47 +0900 Subject: [PATCH] =?UTF-8?q?:ambulance:=20hotfix:=20=EB=A9=94=EC=86=8C?= =?UTF-8?q?=EB=93=9C=20=EC=9D=B4=EB=A6=84=20=EB=B3=80=EA=B2=BD=EC=97=90=20?= =?UTF-8?q?=EC=9D=98=ED=95=B4=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=88=98=EC=A0=95=20(#150)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/diareat/diareat/controller/FoodControllerTest.java | 2 +- .../java/com/diareat/diareat/controller/UserControllerTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()