Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-4851

Error in unit test of PatientServiceTest class

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Should
    • Resolution: Fixed
    • None
    • Core 2.1.0
    • None
    • None

    Description

      for unit test checkPatientIdentifiers_shouldThrowErrorWhenPatientHasIdenticalIdentifiers

      Developers expect a DuplicateIdentifierException to be thrown during testing, but this not the case. The reason for this is because a PatientIdentifierException is thrown before a DuplicateIdentifierException can be raise. To fix this, the "location" field of the PatientIdentifier field must be initialized.
      See pull request for the fix:
      https://github.com/openmrs/openmrs-core/pull/1767

      Gliffy Diagrams

        Attachments

          Activity

            People

              aastorg2 Angello Astorga martin
              aastorg2 Angello Astorga martin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: