It's all about the answers!

Ask a question

How to use Mockito for RTC(EWM) server methods in Java Junit tests?


Daniel Stanaszek (11) | asked Nov 26 '21, 11:12 a.m.

 Hello

I would like to write Junit tests for my RTC(EWM) server side methods in Java. Main goal is to prepare server-independence environment. I would like to ask if someone has an experience with using Mockito framework for such purpose, and can share some examples? For instance, I would like to mock a behavior of "getService(MyService.class).myMethod()" kind of methods. 

Thank you for help in advance

Daniel

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.