Change in ovirt-engine[master]: core: Fix mocking for _perClusterProvider.get()

amureini at redhat.com amureini at redhat.com
Tue Jun 23 13:41:54 UTC 2015


Allon Mureinik has submitted this change and it was merged.

Change subject: core: Fix mocking for _perClusterProvider.get()
......................................................................


core: Fix mocking for _perClusterProvider.get()

Changed mocking to use the doReturn(...).when(...) style to overcome
Mockito's shortcomings with the traditional when(...).thenReturn(...)
style.

Change-Id: Iefe2e25028f0493eef3113e7e67b01be1e7cd972
Signed-off-by: Allon Mureinik <amureini at redhat.com>
---
M backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/scheduling/AffinityRulesEnforcementManagerTest.java
1 file changed, 2 insertions(+), 3 deletions(-)

Approvals:
  Allon Mureinik: Verified; Passed CI tests
  Roy Golan: Looks good to me, approved



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

Gerrit-MessageType: merged
Gerrit-Change-Id: Iefe2e25028f0493eef3113e7e67b01be1e7cd972
Gerrit-PatchSet: 4
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: Jenkins CI
Gerrit-Reviewer: Roy Golan <rgolan at redhat.com>
Gerrit-Reviewer: Tomer Saban <tsaban at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the Engine-commits mailing list