Announcement Announcement Module
Collapse
No announcement yet.
How to pass params to a Service class test Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to pass params to a Service class test

    Hi,
    I am having difficulties in passing params from my unit test case to a Service class method.

    The service class method accepts params as input. Reads the params and puts the values into a object and returns back the object.

    From my unit test I want to be able to test this method, by mocking up params. I want to be able to read this params in my service class method after the call has been invoked from the unit test.

    This is a restful webservice implementation. Any help is appreciated.

    Thanks,
    Saral
Working...
X