fix test failures

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2026-04-16 09:52:45 +05:30
parent d2632412b8
commit 48119d7b9b
2 changed files with 2 additions and 0 deletions

View File

@ -872,6 +872,7 @@ public class ConfigurationManagerImplTest {
Mockito.when(cmd.getAccountId()).thenReturn(null);
Mockito.when(cmd.getDomainId()).thenReturn(null);
Mockito.when(cmd.getImageStoreId()).thenReturn(null);
Mockito.when(cmd.getManagementServerId()).thenReturn(null);
ConfigurationVO cfg = new ConfigurationVO("Advanced", "DEFAULT", "test", "pool.storage.capacity.disablethreshold", null, "description");
cfg.setScope(10);

View File

@ -766,6 +766,7 @@ public class ManagementServerImplTest {
Mockito.when(cmd.getAccountId()).thenReturn(null);
Mockito.when(cmd.getDomainId()).thenReturn(null);
Mockito.when(cmd.getImageStoreId()).thenReturn(null);
Mockito.when(cmd.getManagementServerId()).thenReturn(null);
SearchCriteria<ConfigurationVO> sc = Mockito.mock(SearchCriteria.class);
Mockito.when(configDao.createSearchCriteria()).thenReturn(sc);