Tuesday, September 6, 2011

How to test methods returning void and how to test Asynchronous calls using Mockito.

Hi All,

1. In Junit I am trying to test the method which is not returning
anything using the Mockito, but I am not able to test it.

2. In Junit, If I am trying to test the asynchronous calls in GWT
using Mockito, then I am not understanding how to do it, because
synchronous method gives the result in onSuccess() / onFailure()
methods.

Please help, If anybody has an idea how to do the testing of these
kind of methods using Mockito.

It would be a great help, If you will provide any help.


Thanks and Regards,
Anuj Kumar,
Noida,
India

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate