It's all about the answers!

Ask a question

[EWM Java API] - Junit for BuildOnStateChange plugin


Antoine Torres (111) | asked Mar 15, 8:48 a.m.
Hi,

I followed the EWM extensions workshop (https://jazz.net/library/article/1000) in order to develop a plugin that automatically set the owner of a workItem when created. Everything is working fine, I tested it on a Jetty debug server then on a local instance whithout any issue.
I would like now to develop some Junit tests in order to cover my code, but I can't figure out how to do this and I can't find any test in any Work Item Save Participant example I could find on internet.
Does someone has any Junit example that could help me mocking EWM API objects ?

Thanks

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.