Browse Source

Fixing checkstyle and test errors

pull/688/head
Ryan Baxter 3 years ago
parent
commit
295b5e4861
  1. 4
      spring-cloud-openfeign-core/src/test/java/org/springframework/cloud/openfeign/FeignAutoConfigurationTests.java
  2. 4
      spring-cloud-openfeign-core/src/test/java/org/springframework/cloud/openfeign/circuitbreaker/CircuitBreakerAutoConfigurationTests.java

4
spring-cloud-openfeign-core/src/test/java/org/springframework/cloud/openfeign/FeignAutoConfigurationTests.java

@ -27,7 +27,7 @@ import org.springframework.boot.test.context.assertj.AssertableApplicationContex @@ -27,7 +27,7 @@ import org.springframework.boot.test.context.assertj.AssertableApplicationContex
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.cloud.client.circuitbreaker.CircuitBreakerFactory;
import org.springframework.cloud.client.loadbalancer.LoadBalancerInterceptor;
import org.springframework.cloud.openfeign.FeignAutoConfiguration.CircuitBreakerPresentFeignTargeterConfiguration.DefaultCircuitBreakerNameResolver;
import org.springframework.cloud.openfeign.FeignAutoConfiguration.CircuitBreakerPresentFeignTargeterConfiguration.AlphanumericCircuitBreakerNameResolver;
import org.springframework.cloud.openfeign.security.MockOAuth2ClientContext;
import org.springframework.cloud.openfeign.security.OAuth2FeignRequestInterceptor;
import org.springframework.cloud.openfeign.security.OAuth2FeignRequestInterceptorBuilder;
@ -66,7 +66,7 @@ class FeignAutoConfigurationTests { @@ -66,7 +66,7 @@ class FeignAutoConfigurationTests {
assertOnlyOneTargeterPresent(ctx, FeignCircuitBreakerTargeter.class);
assertThatFeignCircuitBreakerTargeterHasGroupEnabledPropertyWithValue(ctx, false);
assertThatFeignCircuitBreakerTargeterHasSameCircuitBreakerNameResolver(ctx,
DefaultCircuitBreakerNameResolver.class);
AlphanumericCircuitBreakerNameResolver.class);
});
}

4
spring-cloud-openfeign-core/src/test/java/org/springframework/cloud/openfeign/circuitbreaker/CircuitBreakerAutoConfigurationTests.java

@ -37,7 +37,7 @@ public class CircuitBreakerAutoConfigurationTests { @@ -37,7 +37,7 @@ public class CircuitBreakerAutoConfigurationTests {
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
value = { "spring.application.name=springcircuittest", "spring.jmx.enabled=false",
"spring.cloud.openfeign.circuitbreaker.enabled=true",
"spring.cloud.openfeign.circuitbreaker.alphanumeric-ids.enabled=false"})
"spring.cloud.openfeign.circuitbreaker.alphanumeric-ids.enabled=false" })
@Nested
class DefaultNamingStrategy {
@ -58,7 +58,7 @@ public class CircuitBreakerAutoConfigurationTests { @@ -58,7 +58,7 @@ public class CircuitBreakerAutoConfigurationTests {
@SpringBootTest(classes = CircuitBreakerTests.Application.class,
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
value = { "spring.application.name=springcircuittest", "spring.jmx.enabled=false",
"spring.cloud.openfeign.circuitbreaker.enabled=true",})
"spring.cloud.openfeign.circuitbreaker.enabled=true" })
@Nested
class AlphanumericNamingStrategy {

Loading…
Cancel
Save