OpenMRS Core Master
Build: #1566 failed
Job: Deploy did not start
Code commits
openmrs-core
-
Ivo Ulrich <teleivo@users.noreply.github.com> 88b8255073ba16c1072403462f4736134c3b23c9
Merge pull request #2120 from teleivo/globalerrors-matcher
TRUNK-5137 Add custom hamcrest matcher HasGlobalError -
teleivo <mrteleivo@gmail.com> ab5b9ac57be9a7935262a0ba62852c957445f1fe m
TRUNK-5137 Add custom hamcrest matcher HasGlobalError
Add a custom hamcrest matcher HasGlobalErrors which enables
assertThat(errors, hasGlobalErrors());
assertThat(errors, hasGlobalErrors("error.null"));
Provide factories which enables the above after static imports of
the matcher.
Show use of matcher in PersonNameValidatorTest and ConceptValidatorTest- api/src/test/java/org/openmrs/test/matchers/HasGlobalErrors.java (version ab5b9ac57be9a7935262a0ba62852c957445f1fe)
- api/src/test/java/org/openmrs/test/matchers/HasGlobalErrorsTest.java (version ab5b9ac57be9a7935262a0ba62852c957445f1fe)
- api/src/test/java/org/openmrs/validator/ConceptValidatorTest.java (version ab5b9ac57be9a7935262a0ba62852c957445f1fe)
- api/src/test/java/org/openmrs/validator/PersonNameValidatorTest.java (version ab5b9ac57be9a7935262a0ba62852c957445f1fe)