Наше приложение написано с соблюдением требований безопасности за счет реализации шаблона автоматического выключателя с использованием Hystrix.
Все приложение создано с использованием практики, основанной на тестировании, но застряло в точке, где нам нужно реализовать стратегию прерывателя цепи, настроив ее в методах.
Ниже приведен образец конфигурации, используемый нами -
@HystrixCommand(commandProperties = {
@HystrixProperty(name = "circuitBreaker.enabled", value = "true"),
@HystrixProperty(name = "circuitBreaker.requestVolumeThreshold", value = "8"),
@HystrixProperty(name = "circuitBreaker.errorThresholdPercentage", value = "25"),
@HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "2000")},
fallbackMethod = "retrieveMapFallback")
Может ли кто-нибудь прокомментировать, есть ли доступная функция или возможность протестировать ее в моем интеграционном тесте (который загружает весь WebApplicationContext и, следовательно, знает обо всех конфигурациях, доступных в приложении)?
Или это вообще невозможно проверить в контексте моего приложения?
Любые входные данные будут иметь значение.