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

Error in unit test of PatientServiceTest class

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Core 2.1.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      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

        Attachments

          Activity

            People

            Assignee:
            aastorg2 Angello Astorga martin [X] (Inactive)
            Reporter:
            aastorg2 Angello Astorga martin [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: