OpenMRS Core Master
Build: #1557 was successful Changes by teleivo <mrteleivo@gmail.com> and Ivo Ulrich <teleivo@users.noreply.github.com>
Code commits
openmrs-core
-
Ivo Ulrich <teleivo@users.noreply.github.com> 2f3ac9f9552d1db039baef2d13be83509f069798
Merge pull request #2111 from teleivo/conceptattributevalidatortest
Cleanup and add tests to ConceptAttributeTypeValidatorTest -
teleivo <mrteleivo@gmail.com> d6c2b56988f5d54427d765664a7f8e8789ca1170
Cleanup and add tests to ConceptAttributeTypeValidatorTest
* add setUp method preparing variables needed for tests to remove
duplication in test setup
* split tests for null, empty, whitespace name since they are
independent
* add assertions for error code so we ensure that when devs refactor
the code the user will still get the excpected error message
* move happy path tests to the end, which makes side by side reading of
code and test easy- api/src/test/java/org/openmrs/validator/ConceptAttributeTypeValidatorTest.java (version d6c2b56988f5d54427d765664a7f8e8789ca1170)