airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject airavata git commit: update test class to have app input update
Date Wed, 01 Jul 2015 14:56:53 GMT
Repository: airavata
Updated Branches:
  refs/heads/airavata-0.15-release-branch 21ec1c6e7 -> e131c34a0


update test class to have app input update


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

Branch: refs/heads/airavata-0.15-release-branch
Commit: e131c34a0543f951c4b4a059ec0659e708b262f7
Parents: 21ec1c6
Author: Chathuri Wimalasena <chathuri@apache.org>
Authored: Wed Jul 1 10:56:47 2015 -0400
Committer: Chathuri Wimalasena <chathuri@apache.org>
Committed: Wed Jul 1 10:56:47 2015 -0400

----------------------------------------------------------------------
 .../airavata/app/catalog/test/AppInterfaceTest.java      | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/e131c34a/modules/app-catalog/app-catalog-data/src/test/java/org/apache/airavata/app/catalog/test/AppInterfaceTest.java
----------------------------------------------------------------------
diff --git a/modules/app-catalog/app-catalog-data/src/test/java/org/apache/airavata/app/catalog/test/AppInterfaceTest.java
b/modules/app-catalog/app-catalog-data/src/test/java/org/apache/airavata/app/catalog/test/AppInterfaceTest.java
index dd72b8e..963be22 100644
--- a/modules/app-catalog/app-catalog-data/src/test/java/org/apache/airavata/app/catalog/test/AppInterfaceTest.java
+++ b/modules/app-catalog/app-catalog-data/src/test/java/org/apache/airavata/app/catalog/test/AppInterfaceTest.java
@@ -104,15 +104,25 @@ public class AppInterfaceTest {
                 ainterface = appInterface.getApplicationInterface(appID);
                 OutputDataObjectType output3 = createAppOutput("output3", "", DataType.STRING);
                 OutputDataObjectType output4 = createAppOutput("output4", "", DataType.STRING);
+                List<InputDataObjectType> applicationInputs = appInterface.getApplicationInputs(appID);
+                for (InputDataObjectType input : applicationInputs){
+                    System.out.println("######### Previous saved data staged fileld : " +
String.valueOf(input.isDataStaged()));
+                    input.setDataStaged(true);
+                }
+                ainterface.setApplicationInputs(applicationInputs);
                 outputs.add(output3);
                 outputs.add(output4);
                 ainterface.setApplicationOutputs(outputs);
                 appInterface.updateApplicationInterface(appID, ainterface);
                 ApplicationInterfaceDescription updateApp = appInterface.getApplicationInterface(appID);
                 List<OutputDataObjectType> appOutputs = updateApp.getApplicationOutputs();
+                List<InputDataObjectType> appInputs = updateApp.getApplicationInputs();
                 System.out.println("********** application name ************* : " + updateApp.getApplicationName());
                 System.out.println("********** application description ************* : "
+ updateApp.getApplicationDescription());
                 System.out.println("********** output size ************* : " + appOutputs.size());
+                for (InputDataObjectType input : appInputs){
+                    System.out.println("######### updated data staged fileld : " + String.valueOf(input.isDataStaged()));
+                }
             }
             ApplicationModule wrfModule = appInterface.getApplicationModule(wrfModuleId);
             System.out.println("********** WRF module name ************* : " + wrfModule.getAppModuleName());
@@ -177,6 +187,7 @@ public class AppInterfaceTest {
         input.setName(inputName);
         input.setValue(value);
         input.setType(type);
+        input.setDataStaged(false);
         input.setApplicationArgument("test arg");
         input.setInputOrder(order++);
         return input;


Mime
View raw message