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

In BaseContextSenstiveTest, separate out manual setting of auto-increment on Concept Table from initializing database with test data

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Platform 2.1.3, Core 2.2.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      Within BaseContextSensitiveTest, there is a method "initializeInMemoryDatabase" which initializes the in-memory database with some test data.

      This method also manually alters the concept table to so that concept_id is automatically incremented... this is necessary because Concept uses a custom identity generator.

      In some cases, developers may want to write tests that do NOT initialize the in-memory database with test data, but do want to properly set up the Concept table (and any other tables that might use a custom identity generator in the future).

      To do this, that part of the code should be broken out into a separate public method.

       

        Attachments

          Activity

            People

            Assignee:
            mogoodrich Mark Goodrich
            Reporter:
            mogoodrich Mark Goodrich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: