Re: [Dev] Unit test for Kafka connector

2017-10-10 Thread Kalaiyarasi Ganeshalingam
Hi ,

Please find the test case from here.
https://github.com/wso2-extensions/esb-connector-kafka/pull/7

Regards,

Kalaiyarasi Ganeshalingam
Associate Software Engineer| WSO2
WSO2 Inc : http://wso2.org

Tel:+94 076 6792895
LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
Blogs : http://kalai4.blogspot.com/

On Tue, Oct 10, 2017 at 5:59 PM, Malaka Silva  wrote:

> Hi Kalaiyarasi,
>
> Can you share your test case? If you are not writing any assert what is
> purpose of writing the test case?
>
> On Tue, Oct 10, 2017 at 4:52 PM, Kalaiyarasi Ganeshalingam <
> kalaiyar...@wso2.com> wrote:
>
>> Hi all,
>>
>> I am working on Kafka connector unit Test. I implemented a test case
>> without mocking any method / class and also I didn't start any server. But
>> I didn't get any error from back end. While debugging, It call  send method
>> [1]
>> But still i couldn't get any error message and couldn't assert values
>> from this test case. How can we proceed further in this kind of unit test?
>>
>> [1] https://github.com/wso2-extensions/esb-connector-kafka/b
>> lob/master/src/main/java/org/wso2/carbon/connector/KafkaProd
>> uceConnector.java#L150
>> 
>>
>> Regards,
>> Kalaiyarasi Ganeshalingam
>> Associate Software Engineer| WSO2
>> WSO2 Inc : http://wso2.org
>> 
>> Tel:+94 076 6792895 <+94%2076%20679%202895>
>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>> Blogs : http://kalai4.blogspot.com/
>>
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Associate Director / Architect
> M: +94 777 219 791 <+94%2077%20721%209791>
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> https://wso2.com/signature
> http://www.wso2.com/about/team/malaka-silva/
> 
> https://store.wso2.com/store/
>
> Don't make Trees rare, we should keep them with care
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unit test for Kafka connector

2017-10-10 Thread Malaka Silva
Hi Kalaiyarasi,

Can you share your test case? If you are not writing any assert what is
purpose of writing the test case?

On Tue, Oct 10, 2017 at 4:52 PM, Kalaiyarasi Ganeshalingam <
kalaiyar...@wso2.com> wrote:

> Hi all,
>
> I am working on Kafka connector unit Test. I implemented a test case
> without mocking any method / class and also I didn't start any server. But
> I didn't get any error from back end. While debugging, It call  send method
> [1]
> But still i couldn't get any error message and couldn't assert values from
> this test case. How can we proceed further in this kind of unit test?
>
> [1] https://github.com/wso2-extensions/esb-connector-kafka/
> blob/master/src/main/java/org/wso2/carbon/connector/KafkaPro
> duceConnector.java#L150
> 
>
> Regards,
> Kalaiyarasi Ganeshalingam
> Associate Software Engineer| WSO2
> WSO2 Inc : http://wso2.org
> 
> Tel:+94 076 6792895 <+94%2076%20679%202895>
> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
> Blogs : http://kalai4.blogspot.com/
>



-- 

Best Regards,

Malaka Silva
Associate Director / Architect
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
https://wso2.com/signature
http://www.wso2.com/about/team/malaka-silva/

https://store.wso2.com/store/

Don't make Trees rare, we should keep them with care
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev