Few formatting changes.

This commit is contained in:
sbalachandran 2016-08-21 09:17:33 -04:00
parent 13f006e510
commit 888554a7f8
1 changed files with 4 additions and 2 deletions

View File

@ -25,6 +25,7 @@ public class HystrixTimeoutTest {
HystrixCommand.Setter config = HystrixCommand HystrixCommand.Setter config = HystrixCommand
.Setter .Setter
.withGroupKey(HystrixCommandGroupKey.Factory.asKey("RemoteServiceGroup2")); .withGroupKey(HystrixCommandGroupKey.Factory.asKey("RemoteServiceGroup2"));
assertThat(new RemoteServiceTestCommand(config, new RemoteServiceTestSimulator(100)).execute(), assertThat(new RemoteServiceTestCommand(config, new RemoteServiceTestSimulator(100)).execute(),
equalTo("Success")); equalTo("Success"));
} }
@ -89,7 +90,7 @@ public class HystrixTimeoutTest {
HystrixCommand.Setter config = HystrixCommand HystrixCommand.Setter config = HystrixCommand
.Setter .Setter
.withGroupKey(HystrixCommandGroupKey.Factory.asKey("RemoteServiceGroupCircuitBreakerTest")); .withGroupKey(HystrixCommandGroupKey.Factory.asKey("RemoteServiceGroupCircuitBreaker"));
HystrixCommandProperties.Setter commandProperties = HystrixCommandProperties.Setter(); HystrixCommandProperties.Setter commandProperties = HystrixCommandProperties.Setter();
commandProperties.withExecutionTimeoutInMilliseconds(1000); commandProperties.withExecutionTimeoutInMilliseconds(1000);
@ -119,7 +120,8 @@ public class HystrixTimeoutTest {
equalTo("Success")); equalTo("Success"));
} }
public String invokeRemoteService(HystrixCommand.Setter config, int timeout) throws InterruptedException { public String invokeRemoteService(HystrixCommand.Setter config, int timeout)
throws InterruptedException {
String response = null; String response = null;
try { try {
response = new RemoteServiceTestCommand(config, response = new RemoteServiceTestCommand(config,