Change in ovirt-engine[master]: core: InjectorRule for injecting members

Allon Mureinik has submitted this change and it was merged. Change subject: core: InjectorRule for injecting members ...................................................................... core: InjectorRule for injecting members This patch allows the mock Injector instance created by the InjectorRule to return a mocked BeanManager, thus allowing it to run injectMembers and do nothing instead of failing with a NullPointerException. Change-Id: Ibd01fa44bb78c32dc700031f756b1cb66cd16f2c Signed-off-by: Allon Mureinik <amureini@redhat.com> --- M backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/di/Injector.java M backend/manager/modules/vdsbroker/src/test/java/org/ovirt/engine/core/di/InjectorRule.java 2 files changed, 18 insertions(+), 5 deletions(-) Approvals: Tal Nisan: Looks good to me, approved Jenkins CI: Passed CI tests Allon Mureinik: Verified -- To view, visit https://gerrit.ovirt.org/65740 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ibd01fa44bb78c32dc700031f756b1cb66cd16f2c Gerrit-PatchSet: 2 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Allon Mureinik <amureini@redhat.com> Gerrit-Reviewer: Allon Mureinik <amureini@redhat.com> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Martin Betak <mbetak@redhat.com> Gerrit-Reviewer: Roy Golan <rgolan@redhat.com> Gerrit-Reviewer: Tal Nisan <tnisan@redhat.com> Gerrit-Reviewer: gerrit-hooks <automation@ovirt.org>
participants (1)
-
amureini@redhat.com