Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

Write JUnit test cases for serive implementation file with bean dependencies

$
0
0

Hi all,

  I am facing issues in writing JUNIT test cases for my service implementation.

My intention is to write JUNIT test cases for my service implementation files of my plugin. I want to write a test cases without virgo server framework. The main problem i am facing is to pass the dependencies(usersessionservice , vimobjectreference service) that are passed to my functions through beans.

Can you please help me a way to do this, an example would be helpful.

PS: all the methods internally are using usersessionservice , vimobjectreference service, so i need to pass them as parameters.


Viewing all articles
Browse latest Browse all 2218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>