Moti Asayag has submitted this change and it was merged.
Change subject: core: Cleanup SetupNetworksHelper part 2
......................................................................
core: Cleanup SetupNetworksHelper part 2
Removed initialization from DB from the ctor and moved to lazy
initialization mechanism. This allows to get rid of PowerMock usage
and use plain old Mockito for tests.
Tests were adjusted to use Mockito.
Change-Id: Ie90b3dbb37ea3b40a84b0775956172482b9d13a5
Signed-off-by: Mike Kolesnik <mkolesni(a)redhat.com>
---
M
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/SetupNetworksHelper.java
M
backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/SetupNetworksHelperTest.java
2 files changed, 47 insertions(+), 72 deletions(-)
Approvals:
Moti Asayag: Verified; Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/4597
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie90b3dbb37ea3b40a84b0775956172482b9d13a5
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Mike Kolesnik <mkolesni(a)redhat.com>
Gerrit-Reviewer: Moti Asayag <masayag(a)redhat.com>