Skip to content

Commit 4ac5267

Browse files
committed
[BE] fix(#610): 충돌 해결
1 parent 7ed7137 commit 4ac5267

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/src/test/java/com/example/backend/auth/api/controller/auth/AuthControllerTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ void adminLoginSuccessTest() throws Exception {
500500
.accessToken(testerToken)
501501
.build();
502502

503-
when(authService.loginAdmin(any(AdminLoginRequest.class))).thenReturn(response);
503+
when(mockAuthService.loginAdmin(any(AdminLoginRequest.class))).thenReturn(response);
504504

505505
// when & then
506506
mockMvc.perform(post("/auth/admin")
@@ -520,7 +520,7 @@ void adminLoginFailDueToIncorrectId() throws Exception {
520520
.build();
521521

522522
doThrow(new UserException(ExceptionMessage.USER_NOT_ADMIN_ID))
523-
.when(authService)
523+
.when(mockAuthService)
524524
.loginAdmin(any(AdminLoginRequest.class));
525525

526526
// when & then
@@ -541,7 +541,7 @@ void adminLoginFailDueToIncorrectPassword() throws Exception {
541541
.build();
542542

543543
doThrow(new UserException(ExceptionMessage.USER_NOT_ADMIN_PASSWORD))
544-
.when(authService)
544+
.when(mockAuthService)
545545
.loginAdmin(any(AdminLoginRequest.class));
546546

547547
// when & then

0 commit comments

Comments
 (0)