Uploaded image for project: 'GeoServer'
  1. GeoServer
  2. GEOS-7720

Importer extension REST module tests contain an applicationContext.xml

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.10-beta
    • Component/s: Importer
    • Labels:
      None

      Description

      Tests Spring application contexts declared as applicationContext.xml may be included in the normal classpath when starting GeoServer from some IDEs.

      To avoid this situation tests Spring context files should not be named applicationContext.xml and should be manually included:

          @Override
          protected void setUpSpring(List<String> springContextLocations) {
              super.setUpSpring(springContextLocations);
              springContextLocations.add("classpath:TestContext.xml");
          }
      

        Attachments

          Activity

            People

            • Assignee:
              nmco Nuno Oliveira
              Reporter:
              nmco Nuno Oliveira
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: