I’m little new for Axon, need an help in writing test cases on Command and Query Gateways. Can you suggest how we can mock Command/Query Gateway and its method results.
Ex:- I want to test below code snippet.
public SomeType someMethod(){
CompletableFuture future= queryGateway.query(SomeQuery);
future.get();
}
Now I want to mock queryGateway’s query method and its results, as part of method test.