Allon Mureinik has uploaded a new change for review.

Change subject: core: UnPowerMock GetUserVmsByUserIdAndGroupsQueryTest
......................................................................

core: UnPowerMock GetUserVmsByUserIdAndGroupsQueryTest

Removed PowerMock depedency from GetUserVmsByUserIdAndGroupsQueryTest,
and replaced it by spyng the query's protected methods.

In order to achieve this improvement, some refactoring was required in
GetUserVmsByUserIdAndGroupsQuery and in
GetUserVmsByUserIdAndGroupsQueryTest. First, some protected metods were
extracted to prevent exexuteQuery() to call VmHandler and ImagesHandler
directly. Second, the test itslef was slightly simplified so it would
actually test the query's flow and not the underlying handlers'
implementations - which is not appropriate in a UNIT test.

Change-Id: I82f99e6deeb0df9b44bfdbfc41f5da675af858e8
Signed-off-by: Allon Mureinik <amure...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetUserVmsByUserIdAndGroupsQuery.java
M 
backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/GetUserVmsByUserIdAndGroupsQueryTest.java
2 files changed, 22 insertions(+), 26 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/33/4933/1
--
To view, visit http://gerrit.ovirt.org/4933
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I82f99e6deeb0df9b44bfdbfc41f5da675af858e8
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <amure...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to