You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "James Carman (JIRA)" <ji...@apache.org> on 2013/10/08 22:24:41 UTC

[jira] [Commented] (CAMEL-6826) Use Mock Objects Instead of Live HazelcastInstances to Speed Up Testing

    [ https://issues.apache.org/jira/browse/CAMEL-6826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13789643#comment-13789643 ] 

James Carman commented on CAMEL-6826:
-------------------------------------

I have been able to successfully speed up the producer tests.  However, the consumer tests are a bit tricky.  They use a callback API to do their work.  I don't know if it's worth mocking all of that out or not, but I'll play with it.  I'm committing what I have, though.

> Use Mock Objects Instead of Live HazelcastInstances to Speed Up Testing
> -----------------------------------------------------------------------
>
>                 Key: CAMEL-6826
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6826
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-hazelcast
>            Reporter: James Carman
>            Assignee: James Carman
>
> The unit tests for the camel-hazelcast component use real HazelcastInstance objects, which is very slow.  We should use mock objects instead to speed up testing.  Testing the integration can be done with a few, select tests, but the majority of the logic can be tested with mocks.



--
This message was sent by Atlassian JIRA
(v6.1#6144)