Change in ovirt-engine[master]: engine: Added ValidationResult matchers
mkolesni at redhat.com
mkolesni at redhat.com
Sun Mar 17 10:40:12 UTC 2013
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 <mkolesni at 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 <mkolesni at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Mike Kolesnik <mkolesni at redhat.com>
Gerrit-Reviewer: Moti Asayag <masayag at redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs at redhat.com>
More information about the Engine-commits
mailing list