diff --git a/pom.xml b/pom.xml index 5868f71..f0ae0ce 100644 --- a/pom.xml +++ b/pom.xml @@ -68,10 +68,11 @@ 52n-wps-server-gcube [3.6.1-SNAPSHOT, 3.7.0-SNAPSHOT) - + + org.gcube.dataanalysis + ecological-engine + [1.8.5-SNAPSHOT,2.0.0-SNAPSHOT) + org.gcube.dataanalysis ecological-engine-wps-extension diff --git a/src/test/java/org/gcube/dataanalysis/wps/statisticalmanager/synchserver/test/AlgorithmTest.java b/src/test/java/org/gcube/dataanalysis/wps/statisticalmanager/synchserver/test/AlgorithmTest.java index f47de31..8378d20 100644 --- a/src/test/java/org/gcube/dataanalysis/wps/statisticalmanager/synchserver/test/AlgorithmTest.java +++ b/src/test/java/org/gcube/dataanalysis/wps/statisticalmanager/synchserver/test/AlgorithmTest.java @@ -6,6 +6,7 @@ import java.io.InputStreamReader; import java.net.URI; import java.net.URL; import java.util.Iterator; +import java.util.Properties; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.methods.GetMethod; @@ -14,15 +15,21 @@ import org.junit.Test; public class AlgorithmTest { - String protocol=null; - String hostname = null; - String token= null; - String layerID = null; - + @Test public void executeAlgorithmsFromFile() throws Exception{ - + + String env = "pre"; + + Properties prop = new Properties(); + prop.load(AlgorithmTest.class.getResourceAsStream("/test_params.properties")); + + + String protocol = "http"; + String hostname = prop.getProperty(env+".host"); + String token = prop.getProperty(env+".token"); + String layerID = prop.getProperty(env+".layer"); Iterator uris = getUrisIterator();