Currently, we don't have a mock class for the server. The SimpleConsumer
actually doesn't do much with the fetch request and response. Take a look
at the fetch() API on SimpleConsumer. It merely returns the response back
to the user.

Thanks,
Neha


On Wed, Mar 12, 2014 at 11:58 PM, Vadim Keylis <[email protected]>wrote:

> Additional information. We currently using kafka 0.8 and client will be
> written in java.
>
>
> On Wed, Mar 12, 2014 at 10:41 PM, Vadim Keylis <[email protected]
> >wrote:
>
> > Good evening. I am writing consumer that is based on SimpleConsumer. I
> > would like to write integration/unit  tests that simulate different error
> > responses from kafka to make sure my code handles it properly. How do you
> > guys advised to do this within my unit test? Do you have some kind of
> mock
> > kafka that capable of doing this? What would be your advise?
> >
> > Thanks so much,
> > Vadim.
> >
> >
> >
>

Reply via email to