Author: lahiru
Date: Tue Feb  5 23:11:47 2013
New Revision: 1442793

URL: http://svn.apache.org/viewvc?rev=1442793&view=rev
Log:
more changes to TestCases.

Added:
    airavata/trunk/modules/gfac-core/src/test/resources/gfac-config.xml
Modified:
    
airavata/trunk/modules/gfac-core/src/test/java/org/apache/airavata/core/gfac/services/impl/GramProviderTest.java
    
airavata/trunk/modules/gfac-core/src/test/java/org/apache/airavata/core/gfac/services/impl/ParamChemTest.java

Modified: 
airavata/trunk/modules/gfac-core/src/test/java/org/apache/airavata/core/gfac/services/impl/GramProviderTest.java
URL: 
http://svn.apache.org/viewvc/airavata/trunk/modules/gfac-core/src/test/java/org/apache/airavata/core/gfac/services/impl/GramProviderTest.java?rev=1442793&r1=1442792&r2=1442793&view=diff
==============================================================================
--- 
airavata/trunk/modules/gfac-core/src/test/java/org/apache/airavata/core/gfac/services/impl/GramProviderTest.java
 (original)
+++ 
airavata/trunk/modules/gfac-core/src/test/java/org/apache/airavata/core/gfac/services/impl/GramProviderTest.java
 Tue Feb  5 23:11:47 2013
@@ -39,26 +39,27 @@ import org.junit.Test;
 
 import java.io.File;
 import java.net.URL;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.List;
-import java.util.UUID;
+import java.util.*;
 
 public class GramProviderTest {
     private JobExecutionContext jobExecutionContext;
     @Before
     public void setUp() throws Exception {
-
-        GFacConfiguration gFacConfiguration = new GFacConfiguration(null);
+        URL resource = 
GramProviderTest.class.getClassLoader().getResource("gfac-config.xml");
+        System.out.println(resource.getFile());
+        GFacConfiguration gFacConfiguration = GFacConfiguration.create(new 
File(resource.getPath()),null);
         gFacConfiguration.setMyProxyLifeCycle(3600);
         gFacConfiguration.setMyProxyServer("myproxy.teragrid.org");
         gFacConfiguration.setMyProxyUser("ogce");
         gFacConfiguration.setMyProxyPassphrase("");
         
gFacConfiguration.setTrustedCertLocation("/Users/lahirugunathilake/Downloads/certificates");
         //have to set InFlwo Handlers and outFlowHandlers
+//        gFacConfiguration.setInHandlers(Arrays.asList(new String[] 
{"org.apache.airavata.gfac.handler.GramDirectorySetupHandler","org.apache.airavata.gfac.handler.GridFTPInputHandler"}));
+//        gFacConfiguration.setOutHandlers(Arrays.asList(new String[] 
{"org.apache.airavata.gfac.handler.GridFTPOutputHandler"}));
         jobExecutionContext = new JobExecutionContext(gFacConfiguration);
         ApplicationContext applicationContext = new ApplicationContext();
         jobExecutionContext.setApplicationContext(applicationContext);
+
         /*
            * Host
            */

Modified: 
airavata/trunk/modules/gfac-core/src/test/java/org/apache/airavata/core/gfac/services/impl/ParamChemTest.java
URL: 
http://svn.apache.org/viewvc/airavata/trunk/modules/gfac-core/src/test/java/org/apache/airavata/core/gfac/services/impl/ParamChemTest.java?rev=1442793&r1=1442792&r2=1442793&view=diff
==============================================================================
--- 
airavata/trunk/modules/gfac-core/src/test/java/org/apache/airavata/core/gfac/services/impl/ParamChemTest.java
 (original)
+++ 
airavata/trunk/modules/gfac-core/src/test/java/org/apache/airavata/core/gfac/services/impl/ParamChemTest.java
 Tue Feb  5 23:11:47 2013
@@ -33,10 +33,7 @@ import org.junit.Before;
 import org.junit.Test;
 
 import java.io.File;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.List;
-import java.util.UUID;
+import java.util.*;
 
 public class ParamChemTest {
     private JobExecutionContext jobExecutionContext;
@@ -51,6 +48,8 @@ public class ParamChemTest {
         gFacConfiguration.setMyProxyPassphrase("");
         
gFacConfiguration.setTrustedCertLocation("/Users/lahirugunathilake/Downloads/certificates");
         //have to set InFlwo Handlers and outFlowHandlers
+        gFacConfiguration.setInHandlers(Arrays.asList(new 
String[]{"org.apache.airavata.gfac.handler.GramDirectorySetupHandler", 
"org.apache.airavata.gfac.handler.GridFTPInputHandler"}));
+        gFacConfiguration.setOutHandlers(Arrays.asList(new String[] 
{"org.apache.airavata.gfac.handler.GridFTPOutputHandler"}));
         jobExecutionContext = new JobExecutionContext(gFacConfiguration);
         ApplicationContext applicationContext = new ApplicationContext();
         jobExecutionContext.setApplicationContext(applicationContext);

Added: airavata/trunk/modules/gfac-core/src/test/resources/gfac-config.xml
URL: 
http://svn.apache.org/viewvc/airavata/trunk/modules/gfac-core/src/test/resources/gfac-config.xml?rev=1442793&view=auto
==============================================================================
--- airavata/trunk/modules/gfac-core/src/test/resources/gfac-config.xml (added)
+++ airavata/trunk/modules/gfac-core/src/test/resources/gfac-config.xml Tue Feb 
 5 23:11:47 2013
@@ -0,0 +1,22 @@
+<GFac>
+    <GlobalHandlers>
+    </GlobalHandlers>
+    <Provider class="org.apache.airavata.gfac.provider.GramProvider">
+        <InHandlers>
+            <Handler 
class="org.apache.airavata.gfac.handler.GramDirectorySetupHandler"/>
+            <Handler 
class="org.apache.airavata.gfac.handler.GridFTPInputHandler"/>
+        </InHandlers>
+        <OutHandlers>
+            <Handler 
class="org.apache.airavata.gfac.handler.GridFTPInputHandler"/>
+        </OutHandlers>
+    </Provider>
+    <Application name="UltraScan">
+        <InHandlers>
+            <Handler 
class="org.apache.airavata.handlers.GramDirectorySetupHandler"/>
+            <Handler class="org.apache.airavata.handlers.GridFTPInputHandler"/>
+        </InHandlers>
+        <OutHandlers>
+            <Handler class="org.apache.airavata.handlers.GridFTPInputHandler"/>
+        </OutHandlers>
+    </Application>
+</GFac>
\ No newline at end of file


Reply via email to