File tree Expand file tree Collapse file tree
hystrix/src/test/java/com/baeldung/hystrix Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ public void givenSvcTimeoutOf100AndDefaultSettings_whenExecuted_thenReturnSucces
2525 HystrixCommand .Setter config = HystrixCommand
2626 .Setter
2727 .withGroupKey (HystrixCommandGroupKey .Factory .asKey ("RemoteServiceGroup2" ));
28+
2829 assertThat (new RemoteServiceTestCommand (config , new RemoteServiceTestSimulator (100 )).execute (),
2930 equalTo ("Success" ));
3031 }
@@ -89,7 +90,7 @@ public void givenCircuitBreakerSetup__whenRemoteSvcCmdExecuted_thenReturnSuccess
8990
9091 HystrixCommand .Setter config = HystrixCommand
9192 .Setter
92- .withGroupKey (HystrixCommandGroupKey .Factory .asKey ("RemoteServiceGroupCircuitBreakerTest " ));
93+ .withGroupKey (HystrixCommandGroupKey .Factory .asKey ("RemoteServiceGroupCircuitBreaker " ));
9394 HystrixCommandProperties .Setter commandProperties = HystrixCommandProperties .Setter ();
9495 commandProperties .withExecutionTimeoutInMilliseconds (1000 );
9596
@@ -119,7 +120,8 @@ public void givenCircuitBreakerSetup__whenRemoteSvcCmdExecuted_thenReturnSuccess
119120 equalTo ("Success" ));
120121 }
121122
122- public String invokeRemoteService (HystrixCommand .Setter config , int timeout ) throws InterruptedException {
123+ public String invokeRemoteService (HystrixCommand .Setter config , int timeout )
124+ throws InterruptedException {
123125 String response = null ;
124126 try {
125127 response = new RemoteServiceTestCommand (config ,
You can’t perform that action at this time.
0 commit comments