Add methods to get invocations count of a mock service #24
Labels
component/documentation
Improvements or additions to documentation
component/runtime
Runtime behavior of test container
kind/enhancement
Enhancement of existing feature
Milestone
Reason/Context
As of today, we lack of methods on
MicrocksContainer
class that could return the invocations count of a service mock.This data is available in admin console, and is accessible via Metrics resource in REST API. So we would like to have this data easily available, we think it could be benefit for many.
And why do we need to check this invocation count ?
To be sure the mock as been invoked by the application we are covering with integration tests.
Without having this invocations count, we are not able to know whether our application had the correct behaviour or not.
Description
In summary : it would be like what we do when we call the "verify" method of "Mockito".
Implementation ideas
No response
The text was updated successfully, but these errors were encountered: