Match the Class argument of mocked QueryGateway.query calls
ProprietaryAxon Framework 5's QueryGateway.query(query, Result.class) takes the result's Class where Axon Framework 4 took a ResponseType, which no longer exists. A Mockito matcher such as any(ResponseType.class) in a stubbed or verified query call becomes any(Class.class), and eq(ResponseTypes.instanceOf(Result.class)) becomes eq(Result.class), or a queryMany call for multipleInstancesOf, as AxonIQ's recipes migrate the calls of the code under test.
io. moderne. axon. MockedQueryResponseTypemod run . --recipe= io. moderne. axon. MockedQueryResponseTypeInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.