Change in ovirt-engine[master]: core: MoveOrCopyDiskCommandTest @Spy annotation

tnisan at redhat.com tnisan at redhat.com
Wed Oct 19 11:02:11 UTC 2016


Tal Nisan has submitted this change and it was merged.

Change subject: core: MoveOrCopyDiskCommandTest @Spy annotation
......................................................................


core: MoveOrCopyDiskCommandTest @Spy annotation

Spy the command with the @Spy annotation instead of explicitly calling
Mockito.spy in order to set the ground for using injected mocks in
these tests in the future.

Note that the MoreOrCopyImageGroupParameters#setOperation method had
to be exposed in order to allow overriding its value after the
parameters object was created.

Change-Id: Icdb834aa28e2d54d0c4dfc397d647a82114f4363
Signed-off-by: Allon Mureinik <amureini at redhat.com>
---
M backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/storage/disk/MoveOrCopyDiskCommandTest.java
M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/MoveOrCopyImageGroupParameters.java
2 files changed, 39 insertions(+), 30 deletions(-)

Approvals:
  Tal Nisan: Looks good to me, approved
  Jenkins CI: Passed CI tests
  Allon Mureinik: Verified
  Freddy Rolland: Looks good to me, but someone else must approve



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

Gerrit-MessageType: merged
Gerrit-Change-Id: Icdb834aa28e2d54d0c4dfc397d647a82114f4363
Gerrit-PatchSet: 13
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Freddy Rolland <frolland at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Liron Aravot <laravot at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list