[
https://issues.apache.org/jira/browse/CONNECTORS-856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13957552#comment-13957552
]
Karl Wright commented on CONNECTORS-856:
----------------------------------------
I updated the tests for the changes to the security token handling in
RepositoryDocument. Now, two out of three tests pass under maven, but the
third (HttpPosterTest) still fails because t.start() causes a NPE when invoked
on an IngestThread instance that is mocked. This did not happen before, and I
can't see why it should happen now.
Awaiting help to figure this out.
I also verified that mock does not actually function properly still under the
revised Ant build. Oddly enough, it's the exact same test that fails -- it
looks like this must be a problem in mock that manifests itself in odd ways
depending on the platform.
To debug that, I suggest just writing a local test class to help debug the
tester. Meanwhile, I think I may just disable that one test and see how things
go.
> 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)