Mike Kolesnik has submitted this change and it was merged. Change subject: engine: Added ValidationResult matchers ......................................................................
engine: Added ValidationResult matchers The matchers can be used for testing that validation result complies with a given expectation, using JUnit's assertThat syntax. For example: To check that validationMethod() returned a valid result: assertThat(validationMethod(),isValid()); To check that validationMethod() fails with an error message VdcBllMessages.EXPECTED_ERROR_MESSAGE: assertThat(validationMethod(), failsWith(VdcBllMessages.EXPECTED_ERROR_MESSAGE)); Change-Id: I4ed3d5e1e698f5ac00d6a6fe20b855619c35a2ec Signed-off-by: Mike Kolesnik <mkole...@redhat.com> --- A backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/validator/ValidationResultMatchers.java 1 file changed, 141 insertions(+), 0 deletions(-) Approvals: Mike Kolesnik: Verified; Looks good to me, approved -- To view, visit http://gerrit.ovirt.org/13061 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I4ed3d5e1e698f5ac00d6a6fe20b855619c35a2ec Gerrit-PatchSet: 3 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Mike Kolesnik <mkole...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Mike Kolesnik <mkole...@redhat.com> Gerrit-Reviewer: Moti Asayag <masa...@redhat.com> Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches