Build: #1566 failed Run by child build TRUNK-STAND

Stages & jobs

  1. Build and Test

  2. Deploy

  3. Release

    Requires a user to start manually

Build result summary

Details

Completed
Duration
16 minutes
Labels
None
Revisions
openmrs-core
88b8255073ba16c1072403462f4736134c3b23c9 88b8255073ba16c1072403462f4736134c3b23c9
openmrs-standalone
a007b20569b3776ca375346af549436b53296a95 a007b20569b3776ca375346af549436b53296a95
Release scripts
bb61e06483cd415a55b72cceac8d10ad00ee4e8a bb61e06483cd415a55b72cceac8d10ad00ee4e8a
Total tests
3529
Fixed in
#1568 (Changes by teleivo <mrteleivo@gmail.com> and Ivo Ulrich <teleivo@users.noreply.github.com>)

Tests

Responsible

No one has taken responsibility for this failure

Code commits

openmrs-core
Author Commit Message Commit date
Ivo Ulrich <teleivo@users.noreply.github.com> Ivo Ulrich <teleivo@users.noreply.github.com> 88b8255073ba16c1072403462f4736134c3b23c9 88b8255073ba16c1072403462f4736134c3b23c9 Merge pull request #2120 from teleivo/globalerrors-matcher
TRUNK-5137 Add custom hamcrest matcher HasGlobalError
teleivo <mrteleivo@gmail.com> teleivo <mrteleivo@gmail.com> ab5b9ac57be9a7935262a0ba62852c957445f1fe m ab5b9ac57be9a7935262a0ba62852c957445f1fe 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

Tests

New test failures 1
Status Test View job Duration
Collapse Failed ConceptValidatorTest validate_shouldFailIfAnyNameIsAnEmptyString History
Build and Test < 1 sec
java.lang.AssertionError: 
Expected: to have global error of code 'Concept.name.empty'
     but: was <org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 2 errors
Field error in object 'concept' on field 'datatype': rejected value [null]; codes [Concept.datatype.empty.concept.datatype,Concept.datatype.empty.datatype,Concept.datatype.empty.org.openmrs.ConceptDatatype,Concept.datatype.empty]; arguments []; default message [null]
Field error in object 'concept' on field 'conceptClass': rejected value [null]; codes [Concept.conceptClass.empty.concept.conceptClass,Concept.conceptClass.empty.conceptClass,Concept.conceptClass.empty.org.openmrs.ConceptClass,Concept.conceptClass.empty]; arguments []; default message [null]>
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
	at org.openmrs.validator.ConceptValidatorTest.validate_shouldFailIfAnyNameIsAnEmptyString(ConceptValidatorTest.java:85)

Jira issues

IssueDescriptionStatus
Unknown Issue TypeTRUNK-5137Could not obtain issue details from Jira