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

Add unit test for findPossibleValues method of Concept Class

    XMLWordPrintable

Details

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

    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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: