Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3443

StrutsSpringTestCase does not support multiple spring xml configuration files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.8.1
    • 2.2.3
    • None
    • None

    Description

      Spring has a great concept that you can load the xml configuration and define beans with the same name multiple times and the convention is that the lasr definition takes precedence. This is great for testing as we usually load the normal (production) application context xml then load a test application context xml which just overides the beans that need to be changed for that test.

      Currently the StrutsSpringTestCase does not support defining multiple application context xml files for a test. I rewrote the class so that the method protected String getContextLocations() is now protected String[] getContextLocations(). We can now load multiple application context xml files.

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            paulgrove Paul Grove
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: