You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by he...@apache.org on 2011/12/19 19:35:25 UTC

svn commit: r1220884 - /incubator/airavata/trunk/modules/xbaya-gui/src/test/java/org/apache/airavata/xbaya/interpreter/CrossProductWorkflowTest.java

Author: heshan
Date: Mon Dec 19 18:35:25 2011
New Revision: 1220884

URL: http://svn.apache.org/viewvc?rev=1220884&view=rev
Log:
Adding a test case for for-each Cross Product AIRAVATA-225

Added:
    incubator/airavata/trunk/modules/xbaya-gui/src/test/java/org/apache/airavata/xbaya/interpreter/CrossProductWorkflowTest.java

Added: incubator/airavata/trunk/modules/xbaya-gui/src/test/java/org/apache/airavata/xbaya/interpreter/CrossProductWorkflowTest.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/test/java/org/apache/airavata/xbaya/interpreter/CrossProductWorkflowTest.java?rev=1220884&view=auto
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/test/java/org/apache/airavata/xbaya/interpreter/CrossProductWorkflowTest.java (added)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/test/java/org/apache/airavata/xbaya/interpreter/CrossProductWorkflowTest.java Mon Dec 19 18:35:25 2011
@@ -0,0 +1,35 @@
+package org.apache.airavata.xbaya.interpreter;
+
+import org.apache.airavata.xbaya.XBayaException;
+import org.apache.airavata.xbaya.interpreter.utils.WorkflowTestUtils;
+import org.apache.airavata.xbaya.interpretor.WorkflowInterpreter;
+import org.apache.airavata.xbaya.wf.Workflow;
+import org.apache.axis2.engine.ListenerManager;
+import org.junit.Test;
+
+import java.io.IOException;
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.util.UUID;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: heshan
+ * Date: 12/18/11
+ * Time: 8:34 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class CrossProductWorkflowTest {
+    @Test
+    public void testScheduleDynamically() throws IOException, URISyntaxException, XBayaException {
+        URL systemResource = this.getClass().getClassLoader().getSystemResource("foreach-cross-product-levenshtein-distance.xwf");
+        Workflow workflow = new Workflow(WorkflowTestUtils.readWorkflow(systemResource));
+        ListenerManager manager = WorkflowTestUtils.axis2ServiceStarter();
+//        ((InputNode) workflow.getGraph().getNode("Input")).setDefaultValue("abc");
+//        ((InputNode) workflow.getGraph().getNode("Input_2")).setDefaultValue("def");
+        WorkflowInterpreter interpretor = new WorkflowInterpreter(WorkflowTestUtils.getConfiguration(), UUID.randomUUID().toString(),
+                workflow, "NA", "NA",true);
+        interpretor.scheduleDynamically();
+        manager.stop();
+    }
+}