Commit 4ac5267 1 parent 7ed7137 commit 4ac5267 Copy full SHA for 4ac5267
File tree 1 file changed +3
-3
lines changed
backend/src/test/java/com/example/backend/auth/api/controller/auth
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -500,7 +500,7 @@ void adminLoginSuccessTest() throws Exception {
500
500
.accessToken (testerToken )
501
501
.build ();
502
502
503
- when (authService .loginAdmin (any (AdminLoginRequest .class ))).thenReturn (response );
503
+ when (mockAuthService .loginAdmin (any (AdminLoginRequest .class ))).thenReturn (response );
504
504
505
505
// when & then
506
506
mockMvc .perform (post ("/auth/admin" )
@@ -520,7 +520,7 @@ void adminLoginFailDueToIncorrectId() throws Exception {
520
520
.build ();
521
521
522
522
doThrow (new UserException (ExceptionMessage .USER_NOT_ADMIN_ID ))
523
- .when (authService )
523
+ .when (mockAuthService )
524
524
.loginAdmin (any (AdminLoginRequest .class ));
525
525
526
526
// when & then
@@ -541,7 +541,7 @@ void adminLoginFailDueToIncorrectPassword() throws Exception {
541
541
.build ();
542
542
543
543
doThrow (new UserException (ExceptionMessage .USER_NOT_ADMIN_PASSWORD ))
544
- .when (authService )
544
+ .when (mockAuthService )
545
545
.loginAdmin (any (AdminLoginRequest .class ));
546
546
547
547
// when & then
You can’t perform that action at this time.
0 commit comments