airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hes...@apache.org
Subject svn commit: r1244123 - /incubator/airavata/trunk/modules/test-suite/src/test/java/org/apache/airavata/test/suite/gfac/GramProviderTest.java
Date Tue, 14 Feb 2012 16:50:35 GMT
Author: heshan
Date: Tue Feb 14 16:50:35 2012
New Revision: 1244123

URL: http://svn.apache.org/viewvc?rev=1244123&view=rev
Log:
Fixing a test failure.

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

Modified: incubator/airavata/trunk/modules/test-suite/src/test/java/org/apache/airavata/test/suite/gfac/GramProviderTest.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/test-suite/src/test/java/org/apache/airavata/test/suite/gfac/GramProviderTest.java?rev=1244123&r1=1244122&r2=1244123&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/test-suite/src/test/java/org/apache/airavata/test/suite/gfac/GramProviderTest.java
(original)
+++ incubator/airavata/trunk/modules/test-suite/src/test/java/org/apache/airavata/test/suite/gfac/GramProviderTest.java
Tue Feb 14 16:50:35 2012
@@ -36,7 +36,6 @@ import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
 
-import java.io.File;
 import java.net.URL;
 import java.util.*;
 
@@ -46,6 +45,7 @@ public class GramProviderTest {
 
     public static final String MYPROXY = "myproxy";
     public static final String GRAM_PROPERTIES = "gram.properties";
+    private AiravataJCRRegistry jcrRegistry = null;
 
     @Before
     public void setUp() throws Exception {
@@ -55,7 +55,7 @@ public class GramProviderTest {
         Map<String,String> config = new HashMap<String,String>();
             config.put("org.apache.jackrabbit.repository.home","target");
 
-        AiravataJCRRegistry jcrRegistry = new AiravataJCRRegistry(null,
+        jcrRegistry = new AiravataJCRRegistry(null,
                 "org.apache.jackrabbit.core.RepositoryFactoryImpl", "admin",
                 "admin", config);
 
@@ -132,6 +132,7 @@ public class GramProviderTest {
             DefaultInvocationContext ct = new DefaultInvocationContext();
             DefaultExecutionContext ec = new DefaultExecutionContext();
             ec.addNotifiable(new LoggingNotification());
+            ec.setRegistryService(jcrRegistry);
             ct.setExecutionContext(ec);
 
 



Mime
View raw message