Skip to content

Commit 2011522

Browse files
committed
remove unnecessary mocks
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent d95f5d5 commit 2011522

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ public void testRecalculateHostCapacities() {
122122
List<Long> mockHostIds = List.of(1L, 2L, 3L);
123123
try (MockedStatic<Executors> ignored = Mockito.mockStatic(Executors.class)) {
124124
Mockito.when(hostDao.listIdsByType(Host.Type.Routing)).thenReturn(mockHostIds);
125-
Mockito.when(hostDao.findById(Mockito.anyLong())).thenReturn(Mockito.mock(HostVO.class));
126125
ExecutorService executorService = Mockito.mock(ExecutorService.class);
127126
Mockito.when(executorService.submit(Mockito.any(Callable.class))).thenReturn(Mockito.mock(Future.class));
128127
Mockito.when(Executors.newFixedThreadPool(Mockito.anyInt())).thenReturn(executorService);

0 commit comments

Comments
 (0)