Sonar metrics for OpenMRS Core Master

Build: #1213 failed

Job: Sonar Full Analysis failed

Stages & jobs

  1. Sonar Analysis

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,213 of Sonar - OpenMRS Core Master - Sonar Full Analysis. View test case history
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)