Skip to content

Commit 06efd8b

Browse files
committed
Minor change to AccountManagerImplTest
1 parent b3d3c00 commit 06efd8b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/test/java/com/cloud/user/AccountManagerImplTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ public void deleteUserAccountTestIfAccountIdIsNotEqualToCallerAccountIdShouldNot
234234
callContextMocked.when(CallContext::current).thenReturn(callContextMock);
235235
long accountId = 1L;
236236

237+
Mockito.doReturn(accountVoMock).when(callContextMock).getCallingAccount();
238+
Mockito.doReturn(accountVoMock).when(_accountDao).findById(Mockito.anyLong());
237239
Mockito.doReturn(2L).when(accountVoMock).getId();
238240
Mockito.doReturn(true).when(accountManagerImpl).isDeleteNeeded(Mockito.any(), Mockito.anyLong(), Mockito.any());
239241
Mockito.doReturn(new ArrayList<Long>()).when(_projectAccountDao).listAdministratedProjectIds(Mockito.anyLong());

0 commit comments

Comments
 (0)