Forum Discussion

brynprice's avatar
brynprice
Visitor
7 years ago

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.

No RepliesBe the first to reply