[Geoserver-devel] [JIRA] (GEOS-7720) Importer extension REST module tests contain an applicationContext.xml

Nuno Oliveira created an issue

GeoServer / BugGEOS-7720

Importer extension REST module tests contain an applicationContext.xml

Issue Type:

BugBug

Assignee:

Nuno Oliveira

Components:

Importer

Created:

06/Sep/16 7:56 PM

Priority:

MediumMedium

Reporter:

Nuno Oliveira

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");
    }

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.305.0#100011-sha1:1dc2d9a)

Atlassian logo