Change in ovirt-engine[master]: core: Changes to MockEJBStrategyRule

yzaslavs at redhat.com yzaslavs at redhat.com
Wed Feb 20 06:21:07 UTC 2013


Yair Zaslavsky has submitted this change and it was merged.

Change subject: core: Changes to MockEJBStrategyRule
......................................................................


core: Changes to MockEJBStrategyRule

The following patch introduces the following changes:
1. Gives the ability to allow to mock a managed resource, not just a bean
2. mockBean should actually use Mocikto to define the actual mock using when..thenReturn as
the "startingMethod" was not aware to that bean when it was called

Change-Id: Ia23cbe33abe5a080cd599c6af468e3ce728c190a
Signed-off-by: Yair Zaslavsky <yzaslavs at redhat.com>
---
M backend/manager/modules/utils/src/test/java/org/ovirt/engine/core/utils/MockEJBStrategyRule.java
1 file changed, 24 insertions(+), 2 deletions(-)

Approvals:
  Yair Zaslavsky: Verified; Looks good to me, approved


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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia23cbe33abe5a080cd599c6af468e3ce728c190a
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yair Zaslavsky <yzaslavs at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs at redhat.com>



More information about the Engine-commits mailing list