cancel
Showing results for 
Search instead for 
Did you mean: 

How to clear the results from a mock service

Highlighted
Visitor

How to clear the results from a mock service

Hi all,

 

I have the following set up:

 

2 x tests

1 x REST mock service

 

I run the first test and expect and receive a callback response at the mock service.

 

I immediately run the second test and do not expect a callback response at the mock service.  However, when I check to confirm that the mock result is null, it always comes back as not null as it is picking up the result from the first test.

 

I have tried clearing the result using the MockDispatcher.clearResult() method, and stopping/restarting the mock service, but to no avail.

 

Does anyone have any ideas that might help?

 

Thank you in advance.