Change in ovirt-engine[ovirt-engine-3.5]: restapi: Make mapper test more generic

tnisan at redhat.com tnisan at redhat.com
Wed Sep 2 08:48:08 UTC 2015


Tal Nisan has submitted this change and it was merged.

Change subject: restapi: Make mapper test more generic
......................................................................


restapi: Make mapper test more generic

The base class for mapper tests has specific bound for the "from" type
parameter:

  class AbstractInvertibleMappingTest<F extends BaseResource, T, I> ...

But this bound isn't used, and it makes this class unusable for things
other than resources. This patch removes that bound, so the class can be
used with resources and also with other simpler types:

  class AbstractInvertibleMappingTest<F, T, I> ...

Change-Id: I4176cd3a5d7b55ab7cbf00389d5b30a720da66f4
Bug-Url: https://bugzilla.redhat.com/1258864
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
(cherry picked from commit 79f036953af4b0192529472600ff967dfd715325)
---
M backend/manager/modules/restapi/types/src/test/java/org/ovirt/engine/api/restapi/types/AbstractInvertibleMappingTest.java
1 file changed, 1 insertion(+), 2 deletions(-)

Approvals:
  Juan Hernandez: Verified; Looks good to me, approved
  Jenkins CI: Passed CI tests



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I4176cd3a5d7b55ab7cbf00389d5b30a720da66f4
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the Engine-commits mailing list