0
备用方法我使用@HystrixCommand如在我的方法如何测试@HystrixCommand在Springboot应用
@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){
...
}
如下但是我没能测试的备用方法?回退方法不在我的测试中调用。我想我没有正确设置测试。什么是测试回退方法的更好方法?