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

Fix loading messages in tests for modules

    XMLWordPrintable

    Details

    • Complexity:
      Medium
    • Sprint:
      Platform 2.0 Beta Sprint 1

      Description

      As discovered in RESTWS-422 messages are not properly loaded when running tests in modules.

      Our MutableResourceBundleMessageSource in core looks for messages in the following locations: /WEB-INF/messages, /WEB-INF/module_messages and /WEB-INF/custom_messages so it does not find messages on the test classpath. The tests may have been failing or passing depending on the environment.

      This may need to be fixed in MutableResourceBundleMessageSource or in the test application context, by providing additional locations of messages.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                dkayiwa Daniel Kayiwa
                Reporter:
                raff Rafal Korytkowski
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 week, 3 days, 3 hours
                    1w 3d 3h