manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r1633596 - /manifoldcf/branches/CONNECTORS-1060/connectors/alfresco-webscript/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfrescowebscript/tests/APISanityHSQLDBIT.java
Date Wed, 22 Oct 2014 11:04:37 GMT
Author: maoo
Date: Wed Oct 22 11:04:37 2014
New Revision: 1633596

URL: http://svn.apache.org/r1633596
Log:
#CONNECTOR-1060 - Fixed ALFRESCO_PORT param to be ALFRESCO_PORT_PARAM; added statements to
debug job status

Modified:
    manifoldcf/branches/CONNECTORS-1060/connectors/alfresco-webscript/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfrescowebscript/tests/APISanityHSQLDBIT.java

Modified: manifoldcf/branches/CONNECTORS-1060/connectors/alfresco-webscript/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfrescowebscript/tests/APISanityHSQLDBIT.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1060/connectors/alfresco-webscript/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfrescowebscript/tests/APISanityHSQLDBIT.java?rev=1633596&r1=1633595&r2=1633596&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1060/connectors/alfresco-webscript/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfrescowebscript/tests/APISanityHSQLDBIT.java
(original)
+++ manifoldcf/branches/CONNECTORS-1060/connectors/alfresco-webscript/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfrescowebscript/tests/APISanityHSQLDBIT.java
Wed Oct 22 11:04:37 2014
@@ -134,7 +134,7 @@ public class APISanityHSQLDBIT extends B
       
       //port
       ConfigurationNode alfrescoPortNode = new ConfigurationNode("_PARAMETER_");
-      alfrescoPortNode.setAttribute("name", ALFRESCO_PORT);
+      alfrescoPortNode.setAttribute("name", ALFRESCO_PORT_PARAM);
       alfrescoPortNode.setValue(ALFRESCO_PORT);
       child.addChild(child.getChildCount(), alfrescoPortNode);
       
@@ -266,10 +266,6 @@ public class APISanityHSQLDBIT extends B
       {
         ConfigurationNode resultNode = result.findChild(i++);
 
-        System.out.println("Type: "+resultNode.getType());
-        System.out.println("Value: "+resultNode.getValue());
-        System.out.println("Attributes: "+resultNode.getAttributes());
-
         if (resultNode.getType().equals("error"))
           throw new Exception(resultNode.getValue());
         else if (resultNode.getType().equals("job_id"))
@@ -332,12 +328,18 @@ public class APISanityHSQLDBIT extends B
     Configuration result = performAPIGetOperationViaNodes("jobstatuses/"+jobIDString,200);
     String status = null;
     int i = 0;
-    while (i < result.getChildCount())
-    {
+    while (i < result.getChildCount()) {
       ConfigurationNode resultNode = result.findChild(i++);
-      if (resultNode.getType().equals("error"))
+
+      System.out.println("!!! value: " + resultNode.getValue());
+      while (resultNode.getAttributes().hasNext()) {
+        String str = resultNode.getAttributes().next();
+        System.out.println("!!! attr: " + str);
+      }
+
+      if (resultNode.getType().equals("error")) {
         throw new Exception(resultNode.getValue());
-      else if (resultNode.getType().equals("jobstatus"))
+      } else if (resultNode.getType().equals("jobstatus"))
       {
         int j = 0;
         while (j < resultNode.getChildCount())



Mime
View raw message