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

@ContextConfiguration for ROO integration tests to use classpath*

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Complete
    • 1.2.3.RELEASE
    • 1.2.4.RELEASE
    • TESTING
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: