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
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fwso2-extensions%2Fesb-connector-kafka%2Fblob%2Fmaster%2Fsrc%2Fmain%2Fjava%2Forg%2Fwso2%2Fcarbon%2Fconnector%2FKafkaProduceConnector.java%23L150&sa=D&sntz=1&usg=AFQjCNFIFrejxgkKJlZdlzyiIv2LNM9tpQ>
>
> Regards,
> Kalaiyarasi Ganeshalingam
> Associate Software Engineer| WSO2
> WSO2 Inc : http://wso2.org
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org&sa=D&sntz=1&usg=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
> 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/
<http://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

Reply via email to