[
https://issues.apache.org/jira/browse/CONNECTORS-856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13957422#comment-13957422
]
Karl Wright edited comment on CONNECTORS-856 at 4/2/14 7:20 AM:
----------------------------------------------------------------
Just rebased the CONNECTORS-856 branch again, after the build changes.
Unfortunately, now even on Maven, the tests fail. Specifically:
{code}
Failed tests:
testAddOrReplaceDocument(org.apache.manifoldcf.agents.output.solr.SolrConnectorTest):
Argument(s) are different! Wanted:
httpPoster.indexPost(
"Document Id",
repositoryDocument,
{stream.type=[text/plain]},
{cm:description=[cm_description_s], cm:name=[cm_name_s],
cm:title=[cm_title_s]},
true,
"",
iOutputAddActivity
);
-> at
org.apache.manifoldcf.agents.output.solr.SolrConnectorTest.testAddOrReplaceDocument(SolrConnectorTest.java:69)
Actual invocation has different arguments:
httpPoster.indexPost(
"Document Id",
repositoryDocument,
{stream.type=[text/plain]},
{cm:description=[cm_description_s], cm:name=[cm_name_s],
cm:title=[cm_title_s]},
false,
"",
iOutputAddActivity
);
-> at
org.apache.manifoldcf.agents.output.solr.SolrConnectorTest.testAddOrReplaceDocument(SolrConnectorTest.java:68)
{code}
This appears to be because keepAllMetadata is not working as planned. This
needs to be looked into.
was (Author: [email protected]):
Just rebased the CONNECTORS-856 again, after the build changes.
Unfortunately, now even on Maven, the tests fail. Specifically:
{code}
Failed tests:
testAddOrReplaceDocument(org.apache.manifoldcf.agents.output.solr.SolrConnectorTest):
Argument(s) are different! Wanted:
httpPoster.indexPost(
"Document Id",
repositoryDocument,
{stream.type=[text/plain]},
{cm:description=[cm_description_s], cm:name=[cm_name_s],
cm:title=[cm_title_s]},
true,
"",
iOutputAddActivity
);
-> at
org.apache.manifoldcf.agents.output.solr.SolrConnectorTest.testAddOrReplaceDocument(SolrConnectorTest.java:69)
Actual invocation has different arguments:
httpPoster.indexPost(
"Document Id",
repositoryDocument,
{stream.type=[text/plain]},
{cm:description=[cm_description_s], cm:name=[cm_name_s],
cm:title=[cm_title_s]},
false,
"",
iOutputAddActivity
);
-> at
org.apache.manifoldcf.agents.output.solr.SolrConnectorTest.testAddOrReplaceDocument(SolrConnectorTest.java:68)
{code}
This appears to be because keepAllMetadata is not working as planned. This
needs to be looked into.
> Add mock support to testing infrastructure
> ------------------------------------------
>
> Key: CONNECTORS-856
> URL: https://issues.apache.org/jira/browse/CONNECTORS-856
> Project: ManifoldCF
> Issue Type: Improvement
> Components: Tests
> Affects Versions: ManifoldCF 1.6
> Reporter: Karl Wright
> Assignee: Karl Wright
> Fix For: ManifoldCF 1.6
>
>
> A mock library (and its dependencies) needs to be added to the infrastructure
> so that people can write unit tests.
--
This message was sent by Atlassian JIRA
(v6.2#6252)