I am using @HystrixCommand as follows in a my method
@HystrixCommand(fallbackMethod = "fallbackCircuit", groupKey = "group-key", commandProperties = {
@HystrixProperty(name = "requestCache.enabled", value = "true"),
@HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "5000")})
public void someMethod(String input){
...
}
public void fallbackCircuit(String input, Throwable e){
...
}
But I am not able to test the fallback method? The fallback method is not called in my tests. I think I have not setup the tests properly. What would be a better way of testing fallback method?