Skip to content

v0.2.47..v0.2.48 changeset PoiPolygonMatchCreatorTest.cpp

Garret Voltz edited this page Sep 27, 2019 · 1 revision
diff --git a/hoot-core-test/src/test/cpp/hoot/core/conflate/poi-polygon/PoiPolygonMatchCreatorTest.cpp b/hoot-core-test/src/test/cpp/hoot/core/conflate/poi-polygon/PoiPolygonMatchCreatorTest.cpp
index 6d969a9..3a7da82 100644
--- a/hoot-core-test/src/test/cpp/hoot/core/conflate/poi-polygon/PoiPolygonMatchCreatorTest.cpp
+++ b/hoot-core-test/src/test/cpp/hoot/core/conflate/poi-polygon/PoiPolygonMatchCreatorTest.cpp
@@ -34,6 +34,7 @@
 #include <hoot/core/util/Log.h>
 #include <hoot/core/util/MapProjector.h>
 #include <hoot/core/visitors/ElementIdsVisitor.h>
+#include <hoot/core/util/ConfigOptions.h>
 
 using namespace geos::geom;
 using namespace std;
@@ -80,11 +81,15 @@ public:
 
   PoiPolygonMatchCreatorTest()
   {
-    setResetType(ResetBasic);
+    setResetType(ResetAll);
   }
 
   void basicTest()
   {
+    // Poi/poly test output is based on this config for now, despite it being different than the
+    // default config.
+    conf().set(ConfigOptions::getPoiPolygonAddressMatchEnabledKey(), "false");
+
     OsmMapPtr map = getTestMap1();
 
     {
@@ -104,6 +109,9 @@ public:
 
   void runIsCandidateTest()
   {
+    // see corresponding note in basicTest
+    conf().set(ConfigOptions::getPoiPolygonAddressMatchEnabledKey(), "false");
+
     PoiPolygonMatchCreator uut;
 
     OsmMapPtr map = getTestMap1();
Clone this wiki locally