You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2012/04/23 17:57:23 UTC

svn commit: r1329305 - /incubator/airavata/trunk/modules/test-suite/src/test/java/org/apache/airavata/test/suite/gfac/FileBreedGramTest.java

Author: smarru
Date: Mon Apr 23 15:57:23 2012
New Revision: 1329305

URL: http://svn.apache.org/viewvc?rev=1329305&view=rev
Log:
Setting the type for input

Modified:
    incubator/airavata/trunk/modules/test-suite/src/test/java/org/apache/airavata/test/suite/gfac/FileBreedGramTest.java

Modified: incubator/airavata/trunk/modules/test-suite/src/test/java/org/apache/airavata/test/suite/gfac/FileBreedGramTest.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/test-suite/src/test/java/org/apache/airavata/test/suite/gfac/FileBreedGramTest.java?rev=1329305&r1=1329304&r2=1329305&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/test-suite/src/test/java/org/apache/airavata/test/suite/gfac/FileBreedGramTest.java (original)
+++ incubator/airavata/trunk/modules/test-suite/src/test/java/org/apache/airavata/test/suite/gfac/FileBreedGramTest.java Mon Apr 23 15:57:23 2012
@@ -36,6 +36,7 @@ import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
 
+import java.net.URI;
 import java.net.URL;
 import java.util.*;
 
@@ -100,11 +101,8 @@ public class FileBreedGramTest {
         InputParameterType inputParameter = InputParameterType.Factory.newInstance();
         inputParameter.setParameterName("Input_File");
         inputParameter.setParameterDescription("File to Replicate");
-        ParameterType inputParameterType = inputParameter.addNewParameterType();
-        inputParameterType.setName(DataType.URI.toString());
-        inputParameterType.setType(DataType.URI);
+        inputParameter.setParameterType(URIParameterType.Factory.newInstance());
 
-//        parameterType.setType("");
         List<InputParameterType> inputList = new ArrayList<InputParameterType>();
         inputList.add(inputParameter);
         InputParameterType[] inputParamList = inputList.toArray(new InputParameterType[inputList
@@ -160,8 +158,8 @@ public class FileBreedGramTest {
             */
             ParameterContextImpl input = new ParameterContextImpl();
             ActualParameter input_file = new ActualParameter();
-            String InputFile = "/gpfs1/u/ac/ccguser/alatop.inp";
-            ((StringParameterType) input_file.getType()).setValue(InputFile);
+            URI InputFile =  URI.create("/gpfs1/u/ac/ccguser/alatop.inp");
+//            ((URIParameterType) input_file.getType().);
             input.add("input_file", input_file);
 
             /*