Skip to content

Commit f2dd216

Browse files
committed
test fix
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 62d6843 commit f2dd216

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/hypervisors/external/src/test/java/org/apache/cloudstack/agent/manager/ExternalTemplateAdapterTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
package org.apache.cloudstack.agent.manager;
1919

2020
import static org.junit.Assert.assertNull;
21+
import static org.mockito.ArgumentMatchers.eq;
2122
import static org.mockito.Mockito.any;
2223
import static org.mockito.Mockito.anyBoolean;
2324
import static org.mockito.Mockito.anyLong;
@@ -119,7 +120,7 @@ public void prepare_WhenRegionImageStoresExist_ZoneIdsAreIgnored() throws Resour
119120
when(cmd.getExternalDetails()).thenReturn(Collections.emptyMap());
120121
when(_accountMgr.getAccount(anyLong())).thenReturn(mock(com.cloud.user.Account.class));
121122
when(_accountMgr.isAdmin(anyLong())).thenReturn(true);
122-
when(templateMgr.validateTemplateType(any(), anyBoolean(), anyBoolean(), Hypervisor.HypervisorType.External)).thenReturn(com.cloud.storage.Storage.TemplateType.USER);
123+
when(templateMgr.validateTemplateType(any(), anyBoolean(), anyBoolean(), eq(Hypervisor.HypervisorType.External))).thenReturn(com.cloud.storage.Storage.TemplateType.USER);
123124
when(_userDao.findById(any())).thenReturn(mock(UserVO.class));
124125
when(cmd.getEntityOwnerId()).thenReturn(1L);
125126
when(cmd.getTemplateName()).thenReturn("t");

0 commit comments

Comments
 (0)