Moti Asayag has uploaded a new change for review.

Change subject: engine: Declare typed variables UpdateVmDiskCommandTest
......................................................................

engine: Declare typed variables UpdateVmDiskCommandTest

Change-Id: I3a8127aa84fa15fef7e893c0eb25402efc0f644c
Signed-off-by: Moti Asayag <[email protected]>
---
M 
backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/UpdateVmDiskCommandTest.java
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/78/38778/1

diff --git 
a/backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/UpdateVmDiskCommandTest.java
 
b/backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/UpdateVmDiskCommandTest.java
index f0c63f0..0ab92f7 100644
--- 
a/backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/UpdateVmDiskCommandTest.java
+++ 
b/backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/UpdateVmDiskCommandTest.java
@@ -6,7 +6,7 @@
 import static org.junit.Assert.assertTrue;
 import static org.mockito.Matchers.any;
 import static org.mockito.Matchers.anyInt;
-import static org.mockito.Matchers.anyList;
+import static org.mockito.Matchers.anyListOf;
 import static org.mockito.Matchers.eq;
 import static org.mockito.Mockito.atLeast;
 import static org.mockito.Mockito.doNothing;
@@ -396,7 +396,7 @@
         // creating old disk with interface different than interface of disk 
from parameters
         // have to return original disk on each request to dao,
         // since the command updates retrieved instance of disk
-        when(diskDao.get(diskImageGuid)).thenAnswer(new Answer() {
+        when(diskDao.get(diskImageGuid)).thenAnswer(new Answer<Object>() {
             @Override
             public Object answer(InvocationOnMock invocationOnMock) throws 
Throwable {
                 final DiskImage oldDisk = createDiskImage();
@@ -441,7 +441,7 @@
     public void testUpdateDiskInterfaceUnsupported() {
         final UpdateVmDiskParameters parameters = createParameters();
         parameters.getDiskInfo().setDiskInterface(DiskInterface.IDE);
-        when(diskDao.get(diskImageGuid)).thenAnswer(new Answer() {
+        when(diskDao.get(diskImageGuid)).thenAnswer(new Answer<Object>() {
             @Override
             public Object answer(InvocationOnMock invocationOnMock) throws 
Throwable {
             final DiskImage oldDisk = createDiskImage();
@@ -452,7 +452,7 @@
         });
 
         initializeCommand(parameters);
-        doReturn(true).when(command).validatePciAndIdeLimit(anyList());
+        
doReturn(true).when(command).validatePciAndIdeLimit(anyListOf(VM.class));
         mockVdsCommandSetVolumeDescription();
 
         
when(diskValidator.isReadOnlyPropertyCompatibleWithInterface()).thenReturn(ValidationResult.VALID);


-- 
To view, visit https://gerrit.ovirt.org/38778
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3a8127aa84fa15fef7e893c0eb25402efc0f644c
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Moti Asayag <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to