Mock two Services

How to setup MockRegistry for calling two different services from action test?

Hi,

You can add 2 different mocks when building MockRegistry:

var mockRegistry = MockRegistry.create()
  .withMock(ShoppingCartService.class, shoppingCartService);
  .withMock(ProductService.class, productService);

That should do the trick.

It worked. Thanks @efgpinto