For true unit tests, manually mocking those is necessary, yes.  It
might be a good addition to have some utility methods in the testing
packages to handle the boiler plate for these instances (a Builder
pattern).

-jakob


On Tue, Dec 16, 2014 at 10:12 AM, Bae, Jae Hyeon <[email protected]> wrote:
> Hi
>
> Can I get an advice about unit testing StreamTask?
>
> I can create mocked objects for Config, TaskContext, MessageCollector,
> TaskCoordinator but if you have more convenient ways, please share your
> experience.
>
> Thank you
> Best, Jae

Reply via email to