Change in ovirt-engine[master]: core: Un-mock GetDeviceListVDSCommandTest

mkublin at redhat.com mkublin at redhat.com
Thu Jun 14 08:12:18 UTC 2012


Michael Kublin has submitted this change and it was merged.

Change subject: core: Un-mock GetDeviceListVDSCommandTest
......................................................................


core: Un-mock GetDeviceListVDSCommandTest

GetDeviceListVDSCommandTest uses Mockito to mock XmlRpcStruct, which is
quite redundent - it's a simple data-object, with no underlying logic.

This patch removed the mocking and uses XmlRpcStruct directly, which
makes the test easier to read and maintain.

Change-Id: I599fd0050deab4142245af3ccce08d790fbf139c
Signed-off-by: Allon Mureinik <amureini at redhat.com>
---
M backend/manager/modules/vdsbroker/src/test/java/org/ovirt/engine/core/vdsbroker/vdsbroker/GetDeviceListVDSCommandTest.java
1 file changed, 10 insertions(+), 15 deletions(-)

Approvals:
  Michael Kublin: Verified; Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/5333
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I599fd0050deab4142245af3ccce08d790fbf139c
Gerrit-PatchSet: 3
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: Daniel Erez <derez at redhat.com>
Gerrit-Reviewer: Liron Aravot <laravot at redhat.com>
Gerrit-Reviewer: Maor Lipchuk <mlipchuk at redhat.com>
Gerrit-Reviewer: Michael Kublin <mkublin at redhat.com>
Gerrit-Reviewer: Mike Kolesnik <mkolesni at redhat.com>



More information about the Engine-commits mailing list