You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by ma...@apache.org on 2014/10/22 13:04:37 UTC

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

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())