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/20 19:47:57 UTC

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

Author: heshan
Date: Tue Dec 20 18:47:57 2011
New Revision: 1221427

URL: http://svn.apache.org/viewvc?rev=1221427&view=rev
Log:
Adding complex math workflow test. AIRAVATA-225

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

Added: incubator/airavata/trunk/modules/xbaya-gui/src/test/java/org/apache/airavata/xbaya/interpreter/ComplexMathWorkflowTest.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/test/java/org/apache/airavata/xbaya/interpreter/ComplexMathWorkflowTest.java?rev=1221427&view=auto
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/test/java/org/apache/airavata/xbaya/interpreter/ComplexMathWorkflowTest.java (added)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/test/java/org/apache/airavata/xbaya/interpreter/ComplexMathWorkflowTest.java Tue Dec 20 18:47:57 2011
@@ -0,0 +1,27 @@
+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;
+
+public class ComplexMathWorkflowTest {
+
+    @Test
+    public void testScheduleDynamically() throws IOException, URISyntaxException, XBayaException {
+        URL systemResource = this.getClass().getClassLoader().getSystemResource("ComplexMath.xwf");
+        Workflow workflow = new Workflow(WorkflowTestUtils.readWorkflow(systemResource));
+        ListenerManager manager = WorkflowTestUtils.axis2ServiceStarter();
+        WorkflowInterpreter interpretor = new WorkflowInterpreter(WorkflowTestUtils.getConfiguration(), UUID.randomUUID().toString(),
+                workflow, "NA", "NA",true);
+        interpretor.scheduleDynamically();
+        manager.stop();
+    }
+}