You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@samza.apache.org by "Bae, Jae Hyeon" <me...@gmail.com> on 2014/12/16 19:12:08 UTC

How to unit test StreamTask

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

Re: How to unit test StreamTask

Posted by Chris Riccomini <cr...@linkedin.com.INVALID>.
Hey Jae,

Could you please open a JIRA for this? Should be do-able for 0.9.0.

Cheers,
Chris

On 12/16/14 10:44 AM, "Jakob Homan" <jg...@gmail.com> wrote:

>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 <me...@gmail.com>
>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


Re: How to unit test StreamTask

Posted by Jakob Homan <jg...@gmail.com>.
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 <me...@gmail.com> 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