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

How to test an RTC plugin extension

I don't know if it is possible to test a Participant extension with JUnit. We have a test Plugin project for testing a Participant extension such as the plugin com.ibm.team.workitem.service.tests_3.1.0.v20141022_1844. But I don't know how can I test RTC server classes, for instance the run method of a IOperationParticipant. The isolate classes are not a problem but server classes need a functional (or mocked) environment.

Maybe I could add the plugin (extension) and the test plugin to RTC but I don't know how run that test and how check the output.

Any idea or documentation about this issue?

0 votes



One answer

Permanent link
I don't know if it is possible to test a Participant extension with JUnit.


Possible it is. Easy? Not so much, as you said you need to mock the server classes.

Any idea or documentation about this issue?

Focus in mock the library interfaces, it will become your task pretty easy. Also, if you create a extension with atomic components, you can test your custom components and "believe" that the server classes are all fine.

0 votes

Your answer

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,937

Question asked: Apr 06 '16, 12:17 p.m.

Question was seen: 2,427 times

Last updated: Apr 06 '16, 1:40 p.m.

Confirmation Cancel Confirm