How to setup MockRegistry for calling service tests?


I am writing a test for action that calls on other Kalix service. When I run the test, it shows errors with the following hint:

Hint: use kalix.scalasdk.testkit.MockRegistry to provide an instance when testing services calling other components.

How do I resolve the issue following the hint? Is there an example that I can follow somewhere? Thanks for your help.

Hi @wpoosanguansit ,

You can find an example on our docs for how to use the MockRegistry here.

@efgpinto Thanks for your help. I will check that out.