Change in ovirt-engine[master]: restapi: Fix matching of empty list

mkolesni at redhat.com mkolesni at redhat.com
Wed Aug 1 08:20:37 UTC 2012


Mike Kolesnik has submitted this change and it was merged.

Change subject: restapi: Fix matching of empty list
......................................................................


restapi: Fix matching of empty list

If empty list is expected in test, then the matcher would fail because
it contains no elements and the default return value is initialized to
'false'.
Changed default initialization of the return value to 'true' so that it
will be changed to false in the objects are found inequal. No other
change is necessary in this regard, since the method already handles it.

Change-Id: If9144c448881d9373c22c69bd7d222ab88b59f2a
Signed-off-by: Mike Kolesnik <mkolesni at redhat.com>
---
M backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/test/util/TestHelper.java
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Mike Kolesnik: Verified; Looks good to me, approved


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

Gerrit-MessageType: merged
Gerrit-Change-Id: If9144c448881d9373c22c69bd7d222ab88b59f2a
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Mike Kolesnik <mkolesni at redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpastern at redhat.com>
Gerrit-Reviewer: Mike Kolesnik <mkolesni at redhat.com>
Gerrit-Reviewer: Ori Liel <oliel at redhat.com>



More information about the Engine-commits mailing list