Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3334

@ContextConfiguration for ROO integration tests to use classpath*

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.2.3.RELEASE
    • Fix Version/s: 1.2.4.RELEASE
    • Component/s: TESTING
    • Labels:
      None

      Description

      In ROO 1.2.3, generated integration test contain this:
      @ContextConfiguration(locations =

      {"classpath:/META-INF/spring/applicationContext*.xml"}

      However, this causes problems when there are applicationContext*.xml files in both test resources and main resources. The expected behaviour is for test context files to combine with main context files, so the test context files can override only the configuration that is different for testing.

      So, instead it should be like this:
      @ContextConfiguration(locations =

      {"classpath*:/META-INF/spring/applicationContext*.xml"}

        Attachments

          Activity

            People

            Assignee:
            stewarta Alan Stewart
            Reporter:
            lithium147 Tim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: