airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject svn commit: r1511357 - in /airavata/trunk/modules/registry/airavata-jpa-registry/src/test: java/org/apache/airavata/persistance/registry/jpa/ java/org/apache/airavata/persistance/registry/jpa/util/ resources/
Date Wed, 07 Aug 2013 15:20:31 GMT
Author: chathuri
Date: Wed Aug  7 15:20:31 2013
New Revision: 1511357

URL: http://svn.apache.org/r1511357
Log:
fixing AIRAVATA-886

Modified:
    airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/ExecutionErrorResourceTest.java
    airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/ExperimentDataResourceTest.java
    airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/ExperimentMetadataResourceTest.java
    airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/ExperimentResourceTest.java
    airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/GFacJobDataResourceTest.java
    airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/GFacJobStatusResourceTest.java
    airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/GatewayResourceTest.java
    airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/GramDataResourceTest.java
    airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/NodeDataResourceTest.java
    airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/WorkflowDataResourceTest.java
    airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/util/Initialize.java
    airavata/trunk/modules/registry/airavata-jpa-registry/src/test/resources/airavata-client.properties

Modified: airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/ExecutionErrorResourceTest.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/ExecutionErrorResourceTest.java?rev=1511357&r1=1511356&r2=1511357&view=diff
==============================================================================
--- airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/ExecutionErrorResourceTest.java
(original)
+++ airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/ExecutionErrorResourceTest.java
Wed Aug  7 15:20:31 2013
@@ -44,7 +44,7 @@ public class ExecutionErrorResourceTest 
         experimentResource.save();
 
         experimentDataResource = (ExperimentDataResource) experimentResource.create(ResourceType.EXPERIMENT_DATA);
-        experimentDataResource.setExpName("testExp");
+        experimentDataResource.setExpName("testExpID");
         experimentDataResource.setUserName(workerResource.getUser());
         experimentDataResource.save();
 
@@ -84,7 +84,6 @@ public class ExecutionErrorResourceTest 
 
         assertTrue("application descriptor saved successfully", workflowDataResource.isExists(ResourceType.EXECUTION_ERROR,
executionErrorResource.getErrorID()));
 
-        workflowDataResource.remove(ResourceType.EXECUTION_ERROR, executionErrorResource.getErrorID());
     }
 
     @Override

Modified: airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/ExperimentDataResourceTest.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/ExperimentDataResourceTest.java?rev=1511357&r1=1511356&r2=1511357&view=diff
==============================================================================
--- airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/ExperimentDataResourceTest.java
(original)
+++ airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/ExperimentDataResourceTest.java
Wed Aug  7 15:20:31 2013
@@ -45,7 +45,7 @@ public class ExperimentDataResourceTest 
         experimentResource.save();
 
         experimentDataResource = (ExperimentDataResource) experimentResource.create(ResourceType.EXPERIMENT_DATA);
-        experimentDataResource.setExpName("exp1");
+        experimentDataResource.setExpName("testExpID");
         experimentDataResource.setUserName(workerResource.getUser());
         experimentDataResource.save();
 
@@ -87,8 +87,6 @@ public class ExperimentDataResourceTest 
     public void testSave() throws Exception {
         experimentDataResource.save();
         assertTrue("experiment data saved successfully", experimentResource.isExists(ResourceType.EXPERIMENT_DATA,
"testExpID"));
-        //remove experiment data
-        experimentResource.remove(ResourceType.EXPERIMENT_DATA, "testExpID");
     }
 
     public void testRemove() throws Exception {
@@ -98,21 +96,6 @@ public class ExperimentDataResourceTest 
         experimentDataResource.remove(ResourceType.EXPERIMENT_METADATA, "testExpID");
         assertTrue("experiment meta data resource removed successfully", !experimentDataResource.isExists(ResourceType.EXPERIMENT_METADATA,
"testExpID"));
 
-        experimentMetadataResource.setExpID("testExpID");
-        experimentMetadataResource.setMetadata("testMetadata");
-        experimentMetadataResource.save();
-
-        workflowDataResource.setExperimentID("testExpID");
-        workflowDataResource.setStatus("testStatus");
-        workflowDataResource.setTemplateName("testWorkflowInstance");
-
-        Calendar calender = Calendar.getInstance();
-        java.util.Date d = calender.getTime();
-        Timestamp currentTime = new Timestamp(d.getTime());
-
-        workflowDataResource.setLastUpdatedTime(currentTime);
-        workflowDataResource.setStartTime(currentTime);
-        workflowDataResource.save();
     }
 
     @Override

Modified: airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/ExperimentMetadataResourceTest.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/ExperimentMetadataResourceTest.java?rev=1511357&r1=1511356&r2=1511357&view=diff
==============================================================================
--- airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/ExperimentMetadataResourceTest.java
(original)
+++ airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/ExperimentMetadataResourceTest.java
Wed Aug  7 15:20:31 2013
@@ -49,7 +49,7 @@ public class ExperimentMetadataResourceT
         experimentResource.save();
 
         experimentDataResource = (ExperimentDataResource) experimentResource.create(ResourceType.EXPERIMENT_DATA);
-        experimentDataResource.setExpName("testExp");
+        experimentDataResource.setExpName("testExpID");
         experimentDataResource.setUserName(workerResource.getUser());
         experimentDataResource.save();
     }
@@ -62,8 +62,6 @@ public class ExperimentMetadataResourceT
 
         assertTrue("experiment meta data saved successfully", experimentDataResource.isExists(ResourceType.EXPERIMENT_METADATA,
"testExpID"));
 
-        //remove the metadata
-        experimentDataResource.remove(ResourceType.EXPERIMENT_METADATA, "testExpID");
     }
 
     @Override

Modified: airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/ExperimentResourceTest.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/ExperimentResourceTest.java?rev=1511357&r1=1511356&r2=1511357&view=diff
==============================================================================
--- airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/ExperimentResourceTest.java
(original)
+++ airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/ExperimentResourceTest.java
Wed Aug  7 15:20:31 2013
@@ -49,7 +49,7 @@ public class ExperimentResourceTest exte
         experimentResource.save();
 
         experimentDataResource = (ExperimentDataResource) experimentResource.create(ResourceType.EXPERIMENT_DATA);
-        experimentDataResource.setExpName("testExp");
+        experimentDataResource.setExpName("testExpID");
         experimentDataResource.setUserName(workerResource.getUser());
         experimentDataResource.save();
     }
@@ -65,18 +65,13 @@ public class ExperimentResourceTest exte
     public void testSave() throws Exception {
         experimentResource.save();
         assertTrue("experiment save successfully", gatewayResource.isExists(ResourceType.EXPERIMENT,
"testExpID"));
-        //remove experiment
-        gatewayResource.remove(ResourceType.EXPERIMENT, "testExpID");
     }
 
     public void testRemove() throws Exception {
-        experimentResource.remove(ResourceType.EXPERIMENT_DATA, "testExpID");
-        assertTrue("experiment data removed successfully", !experimentResource.isExists(ResourceType.EXPERIMENT_DATA,
"testExpID"));
-
-        experimentDataResource = (ExperimentDataResource) experimentResource.create(ResourceType.EXPERIMENT_DATA);
-        experimentDataResource.setExpName("testExp");
-        experimentDataResource.setUserName(workerResource.getUser());
-        experimentDataResource.save();
+        if (!experimentDataResource.isWorkflowInstancePresent("testWFInstance")){
+            experimentResource.remove(ResourceType.EXPERIMENT_DATA, "testExpID");
+            assertTrue("experiment data removed successfully", !experimentResource.isExists(ResourceType.EXPERIMENT_DATA,
"testExpID"));
+        }
     }
 
     @Override

Modified: airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/GFacJobDataResourceTest.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/GFacJobDataResourceTest.java?rev=1511357&r1=1511356&r2=1511357&view=diff
==============================================================================
--- airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/GFacJobDataResourceTest.java
(original)
+++ airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/GFacJobDataResourceTest.java
Wed Aug  7 15:20:31 2013
@@ -44,7 +44,7 @@ public class GFacJobDataResourceTest ext
         experimentResource.save();
 
         experimentDataResource = (ExperimentDataResource) experimentResource.create(ResourceType.EXPERIMENT_DATA);
-        experimentDataResource.setExpName("testExp");
+        experimentDataResource.setExpName("testExpID");
         experimentDataResource.setUserName(workerResource.getUser());
         experimentDataResource.save();
 

Modified: airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/GFacJobStatusResourceTest.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/GFacJobStatusResourceTest.java?rev=1511357&r1=1511356&r2=1511357&view=diff
==============================================================================
--- airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/GFacJobStatusResourceTest.java
(original)
+++ airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/GFacJobStatusResourceTest.java
Wed Aug  7 15:20:31 2013
@@ -43,7 +43,7 @@ public class GFacJobStatusResourceTest e
         experimentResource.save();
 
         ExperimentDataResource experimentDataResource = (ExperimentDataResource) experimentResource.create(ResourceType.EXPERIMENT_DATA);
-        experimentDataResource.setExpName("testExp");
+        experimentDataResource.setExpName("testExpID");
         experimentDataResource.setUserName(workerResource.getUser());
         experimentDataResource.save();
 

Modified: airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/GatewayResourceTest.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/GatewayResourceTest.java?rev=1511357&r1=1511356&r2=1511357&view=diff
==============================================================================
--- airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/GatewayResourceTest.java
(original)
+++ airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/GatewayResourceTest.java
Wed Aug  7 15:20:31 2013
@@ -170,48 +170,6 @@ public class GatewayResourceTest extends
         gatewayResource.remove(ResourceType.APPLICATION_DESCRIPTOR, "testAppDesc");
         assertFalse(gatewayResource.isExists(ResourceType.APPLICATION_DESCRIPTOR, "testAppDesc"));
 
-        publishWorkflowResource = (PublishWorkflowResource) gatewayResource.create(ResourceType.PUBLISHED_WORKFLOW);
-        hostDescriptorResource = (HostDescriptorResource) gatewayResource.create(ResourceType.HOST_DESCRIPTOR);
-        serviceDescriptorResource = (ServiceDescriptorResource) gatewayResource.create(ResourceType.SERVICE_DESCRIPTOR);
-        applicationDescriptorResource = (ApplicationDescriptorResource) gatewayResource.create(ResourceType.APPLICATION_DESCRIPTOR);
-        experimentResource = (ExperimentResource) gatewayResource.create(ResourceType.EXPERIMENT);
-
-        hostDescriptorResource.setUserName(workerResource.getUser());
-        hostDescriptorResource.setHostDescName("testHostDesc");
-        hostDescriptorResource.setContent("testContent");
-        hostDescriptorResource.save();
-
-        serviceDescriptorResource.setUserName(workerResource.getUser());
-        serviceDescriptorResource.setServiceDescName("testServiceDesc");
-        serviceDescriptorResource.setContent("testContent");
-        serviceDescriptorResource.save();
-
-        applicationDescriptorResource.setHostDescName(hostDescriptorResource.getHostDescName());
-        applicationDescriptorResource.setServiceDescName(serviceDescriptorResource.getServiceDescName());
-        applicationDescriptorResource.setUpdatedUser(workerResource.getUser());
-        applicationDescriptorResource.setName("testAppDesc");
-        applicationDescriptorResource.setContent("testContent");
-        applicationDescriptorResource.save();
-
-        Calendar calender = Calendar.getInstance();
-        java.util.Date d = calender.getTime();
-        Timestamp currentTime = new Timestamp(d.getTime());
-
-        publishWorkflowResource.setName("pubworkflow1");
-        publishWorkflowResource.setCreatedUser("admin");
-        publishWorkflowResource.setContent("testContent");
-        Calendar c = Calendar.getInstance();
-        java.util.Date da = c.getTime();
-        Timestamp time = new Timestamp(da.getTime());
-        publishWorkflowResource.setPublishedDate(time);
-        publishWorkflowResource.save();
-
-        experimentResource.setExpID("testExpID");
-        experimentResource.setProject(projectResource);
-        experimentResource.setWorker(workerResource);
-        experimentResource.setSubmittedDate(currentTime);
-        experimentResource.save();
-
     }
 
     @Override

Modified: airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/GramDataResourceTest.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/GramDataResourceTest.java?rev=1511357&r1=1511356&r2=1511357&view=diff
==============================================================================
--- airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/GramDataResourceTest.java
(original)
+++ airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/GramDataResourceTest.java
Wed Aug  7 15:20:31 2013
@@ -42,7 +42,7 @@ public class GramDataResourceTest extend
         experimentResource.save();
 
         ExperimentDataResource experimentDataResource = (ExperimentDataResource) experimentResource.create(ResourceType.EXPERIMENT_DATA);
-        experimentDataResource.setExpName("testExp");
+        experimentDataResource.setExpName("testExpID");
         experimentDataResource.setUserName(workerResource.getUser());
         experimentDataResource.save();
 
@@ -66,8 +66,6 @@ public class GramDataResourceTest extend
 
         assertTrue("gram data saved successfully", workflowDataResource.isGramDataExists("testNode"));
 
-        //remove the gram data
-        workflowDataResource.removeGramData("testNodeID");
     }
 
     @Override

Modified: airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/NodeDataResourceTest.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/NodeDataResourceTest.java?rev=1511357&r1=1511356&r2=1511357&view=diff
==============================================================================
--- airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/NodeDataResourceTest.java
(original)
+++ airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/NodeDataResourceTest.java
Wed Aug  7 15:20:31 2013
@@ -42,7 +42,7 @@ public class NodeDataResourceTest extend
         experimentResource.save();
 
         ExperimentDataResource experimentDataResource = (ExperimentDataResource) experimentResource.create(ResourceType.EXPERIMENT_DATA);
-        experimentDataResource.setExpName("testExp");
+        experimentDataResource.setExpName("testExpID");
         experimentDataResource.setUserName(workerResource.getUser());
         experimentDataResource.save();
 
@@ -66,8 +66,6 @@ public class NodeDataResourceTest extend
         nodeDataResource.save();
 
         assertTrue("node data resource saved successfully", workflowDataResource.isNodeExists("testNodeID"));
-        //remove node data
-        workflowDataResource.removeNodeData("testNodeID");
     }
 
     @Override

Modified: airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/WorkflowDataResourceTest.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/WorkflowDataResourceTest.java?rev=1511357&r1=1511356&r2=1511357&view=diff
==============================================================================
--- airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/WorkflowDataResourceTest.java
(original)
+++ airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/WorkflowDataResourceTest.java
Wed Aug  7 15:20:31 2013
@@ -45,7 +45,7 @@ public class WorkflowDataResourceTest ex
         experimentResource.save();
 
         experimentDataResource = (ExperimentDataResource) experimentResource.create(ResourceType.EXPERIMENT_DATA);
-        experimentDataResource.setExpName("testExp");
+        experimentDataResource.setExpName("testExpID");
         experimentDataResource.setUserName(workerResource.getUser());
         experimentDataResource.save();
 
@@ -95,22 +95,9 @@ public class WorkflowDataResourceTest ex
         assertTrue("node date removed successfully", !workflowDataResource.isNodeExists("testNodeID"));
         assertTrue("gram date removed successfully", !workflowDataResource.isGramDataExists("testNodeID"));
 
-        nodeDataResource = workflowDataResource.createNodeData("testNodeID");
-        gramDataResource = workflowDataResource.createGramData("testNodeID");
-
-        nodeDataResource.setWorkflowDataResource(workflowDataResource);
-        nodeDataResource.setInputs("testInput");
-        nodeDataResource.setOutputs("testOutput");
-        nodeDataResource.setStatus("testStatus");
-        nodeDataResource.save();
-
-        gramDataResource.setRsl("testRSL");
-        gramDataResource.setWorkflowDataResource(workflowDataResource);
-        gramDataResource.save();
     }
 
     public void testSave() throws Exception {
-        workflowDataResource.save();
         assertTrue("workflow data saved successfully", experimentDataResource.isWorkflowInstancePresent("testWFInstance"));
     }
 

Modified: airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/util/Initialize.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/util/Initialize.java?rev=1511357&r1=1511356&r2=1511357&view=diff
==============================================================================
--- airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/util/Initialize.java
(original)
+++ airavata/trunk/modules/registry/airavata-jpa-registry/src/test/java/org/apache/airavata/persistance/registry/jpa/util/Initialize.java
Wed Aug  7 15:20:31 2013
@@ -70,6 +70,23 @@ public class Initialize {
         return true;
     }
 
+    private static boolean isServerStarted(NetworkServerControl server, int ntries)
+    {
+        for (int i = 1; i <= ntries; i ++)
+        {
+            try {
+                Thread.sleep(500);
+                server.ping();
+                return true;
+            }
+            catch (Exception e) {
+                if (i == ntries)
+                    return false;
+            }
+        }
+        return false;
+    }
+
     public void initializeDB() {
         String jdbcUrl = null;
         String jdbcDriver = null;
@@ -87,6 +104,9 @@ public class Initialize {
 
 
         startDerbyInServerMode();
+        if(!isServerStarted(server, 20)){
+           throw new RuntimeException("Derby server cound not started within five seconds...");
+        }
 //      startDerbyInEmbeddedMode();
 
         Connection conn = null;
@@ -104,10 +124,12 @@ public class Initialize {
             throw new RuntimeException("Database failure", e);
         } finally {
             try {
-                if (!conn.getAutoCommit()) {
-                    conn.commit();
+                if (conn != null){
+                    if (!conn.getAutoCommit()) {
+                        conn.commit();
+                    }
+                    conn.close();
                 }
-                conn.close();
             } catch (SQLException e) {
                 logger.error(e.getMessage(), e);
                 e.printStackTrace();  //To change body of catch statement use File | Settings
| File Templates.
@@ -289,9 +311,9 @@ public class Initialize {
             Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
             DriverManager.getConnection("jdbc:derby:memory:unit-testing-jpa;create=true").close();
         } catch (ClassNotFoundException e) {
-            e.printStackTrace();  //To change body of catch statement use File | Settings
| File Templates.
+            e.printStackTrace();
         } catch (SQLException e) {
-            e.printStackTrace();  //To change body of catch statement use File | Settings
| File Templates.
+            e.printStackTrace();
         }
     }
 

Modified: airavata/trunk/modules/registry/airavata-jpa-registry/src/test/resources/airavata-client.properties
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/registry/airavata-jpa-registry/src/test/resources/airavata-client.properties?rev=1511357&r1=1511356&r2=1511357&view=diff
==============================================================================
--- airavata/trunk/modules/registry/airavata-jpa-registry/src/test/resources/airavata-client.properties
(original)
+++ airavata/trunk/modules/registry/airavata-jpa-registry/src/test/resources/airavata-client.properties
Wed Aug  7 15:20:31 2013
@@ -38,7 +38,7 @@ class.registry.accessor=org.apache.airav
 
 #for derby [AiravataJPARegistry]
 registry.jdbc.driver=org.apache.derby.jdbc.ClientDriver
-registry.jdbc.url=jdbc:derby://localhost:1527/persistent_data;create=true;user=airavata;password=airavata
+registry.jdbc.url=jdbc:derby://localhost:20000/jpa_test;create=true;user=airavata;password=airavata
 registry.jdbc.user=airavata
 registry.jdbc.password=airavata
 start.derby.server.mode=true



Mime
View raw message