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

AuthenticatedUserTestHelper, for writing mock-based unit tests that require an authenticated user, but no other context

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: TBD
    • Resolution: Change Request Cancelled
    • Affects Version/s: None
    • Fix Version/s: Platform 2.0.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Undetermined

      Description

      Move/copy this class into OpenMRS core, under api/test:
      https://github.com/openmrs/openmrs-module-emrapi/blob/master/api/src/test/java/org/openmrs/module/emrapi/test/AuthenticatedUserTestHelper.java

      I also think it's appropriate to put a @DirtiesContext annotation on this class, in case it is somehow mixed in with context-sensitive tests.

      See: https://groups.google.com/a/openmrs.org/d/msg/dev/565ypEKvizw/ju4T7lZHcYIJ

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            darius Darius Jazayeri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified