File tree Expand file tree Collapse file tree
src/test/java/com/baeldung/hystrix Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 <java .version>1.8</java .version>
2222
2323 <!-- Hystrix -->
24- <hystrix-core .version>1.4.10 </hystrix-core .version>
24+ <hystrix-core .version>1.5.4 </hystrix-core .version>
2525 <rxjava-core .version>0.20.7</rxjava-core .version>
2626
2727 <!-- Testing -->
Original file line number Diff line number Diff line change 11package com .baeldung .hystrix ;
22
3- import com .netflix .hystrix .*;
4- import com .netflix .hystrix .collapser .RequestCollapserFactory ;
3+ import com .netflix .hystrix .HystrixCommand ;
4+ import com .netflix .hystrix .HystrixCommandGroupKey ;
5+ import com .netflix .hystrix .HystrixCommandProperties ;
6+ import com .netflix .hystrix .HystrixThreadPoolProperties ;
57import com .netflix .hystrix .exception .HystrixRuntimeException ;
6- import org .junit .After ;
78import org .junit .Before ;
89import org .junit .Rule ;
910import org .junit .Test ;
1011import org .junit .rules .ExpectedException ;
1112
12- import java .util .concurrent .ExecutionException ;
13-
1413import static org .hamcrest .MatcherAssert .assertThat ;
1514import static org .hamcrest .Matchers .equalTo ;
1615
@@ -48,7 +47,7 @@ public void givenServiceTimeoutEqualTo10000_andDefaultSettings_thenExpectHRE() t
4847 }
4948
5049 @ Test
51- public void givenServiceTimeoutEqualTo5000_andExecutionTimeoutEqualTo10000_thenReturnSuccess ()
50+ public void givenServiceTimeoutEqualTo500_andExecutionTimeoutEqualTo10000_thenReturnSuccess ()
5251 throws InterruptedException {
5352 commandProperties .withExecutionTimeoutInMilliseconds (10_000 );
5453 config .andCommandPropertiesDefaults (commandProperties );
You can’t perform that action at this time.
0 commit comments