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

Add unit test for findPossibleValues method of Concept Class

    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

      I am adding a unit test for previously un-tested method findPossibleValues from Concept class, However the assertion I use to test fails.

      Based on my understanding, this assertion should not fail.

      see here in my local fork the unit test in question: ConceptTest class method findPossibleValues_shouldReturnListOfConceptsFromMatchingResults

      https://github.com/astorga2/openmrs-core/commit/77c9a1f4f1bcff53f1fd37b43102d19067d628f5

      the output message I get is:
      Failed tests:
      ConceptTest.findPossibleValues_shouldReturnListOfConceptsFromMatchingResults:12
      01 expected:<[1]> but was:<[]>

        Gliffy Diagrams

          Attachments

            Attachments-Category-Modification

              Activity

                People

                • Assignee:
                  aastorg2 Angello Astorga martin
                  Reporter:
                  aastorg2 Angello Astorga martin
                  Watchers:
                  Angello Astorga martin, Daniel Kayiwa
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: