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 <[email protected]>
---
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 <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Mike Kolesnik <[email protected]>
Gerrit-Reviewer: Moti Asayag <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches