OpenMRS Core Master
Build: #1566 failed
Job: Build and Test failed
Validate should fail if any name is an empty string: Test case result
The below summarizes the result of the test "Validate should fail if any name is an empty string" in build 1,566 of OpenMRS Core - OpenMRS Core Master - Build and Test.
- Description
- Validate should fail if any name is an empty string
- Test class
- org.openmrs.validator.ConceptValidatorTest
- Method
- validate_shouldFailIfAnyNameIsAnEmptyString
- Duration
- < 1 sec
- Status
- Failed (New Failure)
Error Log
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)