You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by la...@apache.org on 2014/05/22 20:49:37 UTC

git commit: fixing orchestrator test

Repository: airavata
Updated Branches:
  refs/heads/master 6c10f6e67 -> fe507e4b6


fixing orchestrator test


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/fe507e4b
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/fe507e4b
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/fe507e4b

Branch: refs/heads/master
Commit: fe507e4b69fafebd471a46218e35ffc4cfe61cc3
Parents: 6c10f6e
Author: lahiru <la...@apache.org>
Authored: Thu May 22 14:49:24 2014 -0400
Committer: lahiru <la...@apache.org>
Committed: Thu May 22 14:49:24 2014 -0400

----------------------------------------------------------------------
 .../airavata/orchestrator/core/ValidatorTest.java      | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/fe507e4b/modules/orchestrator/orchestrator-core/src/test/java/org/apache/airavata/orchestrator/core/ValidatorTest.java
----------------------------------------------------------------------
diff --git a/modules/orchestrator/orchestrator-core/src/test/java/org/apache/airavata/orchestrator/core/ValidatorTest.java b/modules/orchestrator/orchestrator-core/src/test/java/org/apache/airavata/orchestrator/core/ValidatorTest.java
index 7f5f077..e00853b 100644
--- a/modules/orchestrator/orchestrator-core/src/test/java/org/apache/airavata/orchestrator/core/ValidatorTest.java
+++ b/modules/orchestrator/orchestrator-core/src/test/java/org/apache/airavata/orchestrator/core/ValidatorTest.java
@@ -21,6 +21,7 @@
 package org.apache.airavata.orchestrator.core;
 
 import org.apache.airavata.common.utils.AiravataUtils;
+import org.apache.airavata.model.error.LaunchValidationException;
 import org.apache.airavata.model.util.ExperimentModelUtil;
 import org.apache.airavata.model.workspace.experiment.*;
 import org.apache.airavata.orchestrator.core.utils.OrchestratorConstants;
@@ -95,9 +96,17 @@ public class ValidatorTest extends BaseOrchestratorTest {
 
         simpleExperiment.setExperimentID(null);
 
-        Assert.assertFalse(orchestrator.validateExperiment(simpleExperiment,test,tasks.get(0)).isValidationState());
+        try {
+            orchestrator.validateExperiment(simpleExperiment, test, tasks.get(0)).isValidationState();
+        }catch(LaunchValidationException e){
+            Assert.assertTrue(true);
+        }
         tasks.get(0).setTaskID(null);
-        Assert.assertFalse(orchestrator.validateExperiment(simpleExperiment,test,tasks.get(0)).isValidationState());
+        try {
+            orchestrator.validateExperiment(simpleExperiment, test, tasks.get(0));
+        }catch (LaunchValidationException e){
+            Assert.assertTrue(true);
+        }
     }
 
 }