Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-1087

Alfresco webscript connector unit tests failing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • ManifoldCF 1.8, ManifoldCF 2.0
    • ManifoldCF 1.8, ManifoldCF 2.0
    • None
    • None

    Description

      The failure is as follows:

      run-tests:
          [mkdir] Created dir: C:\wip\mcf\trunk\connectors\alfresco-webscript\test-out
      put
          [junit] Testsuite: org.apache.manifoldcf.authorities.authorities.alfrescoweb
      script.AlfrescoAuthorityConnectorTest
          [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.16
      7 sec
          [junit]
          [junit] Testsuite: org.apache.manifoldcf.crawler.connectors.alfrescowebscrip
      t.AlfrescoConnectorTest
          [junit] !!! Fetched and added 0 seed documents
          [junit] !!! Fetched and added 0 seed documents
          [junit] !!! Fetched and added 0 seed documents
          [junit] !!! Fetched and added 1 seed documents
          [junit] Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.24
      9 sec
          [junit]
          [junit] ------------- Standard Output ---------------
          [junit] !!! Fetched and added 0 seed documents
          [junit] !!! Fetched and added 0 seed documents
          [junit] !!! Fetched and added 0 seed documents
          [junit] !!! Fetched and added 1 seed documents
          [junit] ------------- ---------------- ---------------
          [junit] Testcase: whenProcessingDocumentsNodeRefsAreUsedAsDocumentURI(org.ap
      ache.manifoldcf.crawler.connectors.alfrescowebscript.AlfrescoConnectorTest):
      FAILED
          [junit]
          [junit] Wanted but not invoked:
          [junit] iProcessActivity.ingestDocumentWithException(
          [junit]     "abc123",
          [junit]     <any>,
          [junit]     "http://localhost:8080/foo",
          [junit]     <Capturing argument>
          [junit] );
          [junit] -> at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.Alf
      rescoConnectorTest.whenProcessingDocumentsNodeRefsAreUsedAsDocumentURI(AlfrescoC
      onnectorTest.java:160)
          [junit]
          [junit] However, there were other interactions with this mock:
          [junit] -> at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.Alf
      rescoConnector.processDocuments(AlfrescoConnector.java:282)
          [junit] -> at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.Alf
      rescoConnector.processDocuments(AlfrescoConnector.java:291)
          [junit] -> at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.Alf
      rescoConnector.processDocuments(AlfrescoConnector.java:298)
          [junit] -> at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.Alf
      rescoConnector.processDocuments(AlfrescoConnector.java:305)
          [junit] -> at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.Alf
      rescoConnector.processDocuments(AlfrescoConnector.java:320)
          [junit] -> at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.Alf
      rescoConnector.processDocuments(AlfrescoConnector.java:321)
          [junit] -> at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.Alf
      rescoConnector.processDocuments(AlfrescoConnector.java:403)
          [junit]
          [junit] junit.framework.AssertionFailedError:
          [junit] Wanted but not invoked:
          [junit] iProcessActivity.ingestDocumentWithException(
          [junit]     "abc123",
          [junit]     <any>,
          [junit]     "http://localhost:8080/foo",
          [junit]     <Capturing argument>
          [junit] );
          [junit] -> at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.Alf
      rescoConnectorTest.whenProcessingDocumentsNodeRefsAreUsedAsDocumentURI(AlfrescoC
      onnectorTest.java:160)
          [junit]
          [junit] However, there were other interactions with this mock:
          [junit] -> at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.Alf
      rescoConnector.processDocuments(AlfrescoConnector.java:282)
          [junit] -> at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.Alf
      rescoConnector.processDocuments(AlfrescoConnector.java:291)
          [junit] -> at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.Alf
      rescoConnector.processDocuments(AlfrescoConnector.java:298)
          [junit] -> at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.Alf
      rescoConnector.processDocuments(AlfrescoConnector.java:305)
          [junit] -> at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.Alf
      rescoConnector.processDocuments(AlfrescoConnector.java:320)
          [junit] -> at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.Alf
      rescoConnector.processDocuments(AlfrescoConnector.java:321)
          [junit] -> at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.Alf
      rescoConnector.processDocuments(AlfrescoConnector.java:403)
          [junit]
          [junit]     at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.Al
      frescoConnectorTest.whenProcessingDocumentsNodeRefsAreUsedAsDocumentURI(Alfresco
      ConnectorTest.java:160)
          [junit]     at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(J
      Unit45AndHigherRunnerImpl.java:37)
          [junit]     at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner
      .java:62)
          [junit]
          [junit]
      
      BUILD FAILED
      

      Attachments

        Activity

          People

            kwright@metacarta.com Karl Wright
            kwright@metacarta.com Karl Wright
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: