-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GEOS-8385] Update MongoDB integration with App-Schema tests to use r…
…elative mappings
- Loading branch information
Nuno Oliveira
committed
Nov 12, 2017
1 parent
288c0ff
commit 353c907
Showing
6 changed files
with
704 additions
and
492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...hema-mongo-test/src/test/java/org/geoserver/test/onlineTest/ComplexMongoDBLegacyTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,25 @@ | |||
/* (c) 2017 Open Source Geospatial Foundation - all rights reserved | |||
* This code is licensed under the GPL 2.0 license, available at the root | |||
* application directory. | |||
*/ | |||
package org.geoserver.test.onlineTest; | |||
|
|||
import org.geoserver.data.test.SystemTestData; | |||
|
|||
/** | |||
* Tests the integration between MongoDB and App-schema using mappings defined using the legacy full paths. | |||
*/ | |||
public class ComplexMongoDBLegacyTest extends ComplexMongoDBSupport { | |||
|
|||
@Override | |||
protected void onSetUp(SystemTestData testData) throws Exception { | |||
// make complex MongoDB use legacy paths | |||
System.setProperty("org.geotools.data.mongodb.complex.useLegacyPaths", "true"); | |||
super.onSetUp(testData); | |||
} | |||
|
|||
@Override | |||
protected String getPathOfMappingsToUse() { | |||
return "/mappings/stations_legacy.xml"; | |||
} | |||
} |
Oops, something went wrong.