Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

 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

0 votes


Be the first one to answer this question!

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 7,495
× 1,325

Question asked: Nov 26 '21, 11:12 a.m.

Question was seen: 735 times

Last updated: Nov 26 '21, 11:12 a.m.

Confirmation Cancel Confirm