You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@storm.apache.org by "Stig Rohde Døssing (JIRA)" <ji...@apache.org> on 2018/03/10 15:24:00 UTC

[jira] [Created] (STORM-2991) Use MockConsumer for tests where possible in storm-kafka-client instead of using a raw Mockito mock

Stig Rohde Døssing created STORM-2991:
-----------------------------------------

             Summary: Use MockConsumer for tests where possible in storm-kafka-client instead of using a raw Mockito mock
                 Key: STORM-2991
                 URL: https://issues.apache.org/jira/browse/STORM-2991
             Project: Apache Storm
          Issue Type: Improvement
          Components: storm-kafka-client
    Affects Versions: 2.0.0
            Reporter: Stig Rohde Døssing
            Assignee: Stig Rohde Døssing


MockConsumer seems like it will be less brittle for testing than using a raw Mockito mock, e.g. we don't have to manually stub the Consumer.position call. We should try to replace the mocks in existing tests.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)