|
|
@ -31,7 +31,6 @@ import org.mockito.Mockito;
|
|
|
|
import org.mockito.junit.MockitoJUnitRunner;
|
|
|
|
import org.mockito.junit.MockitoJUnitRunner;
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.BeanFactory;
|
|
|
|
import org.springframework.beans.factory.BeanFactory;
|
|
|
|
import org.springframework.cloud.client.loadbalancer.LoadBalancerProperties;
|
|
|
|
|
|
|
|
import org.springframework.cloud.gateway.config.GatewayLoadBalancerProperties;
|
|
|
|
import org.springframework.cloud.gateway.config.GatewayLoadBalancerProperties;
|
|
|
|
import org.springframework.cloud.gateway.filter.ReactiveLoadBalancerClientFilter;
|
|
|
|
import org.springframework.cloud.gateway.filter.ReactiveLoadBalancerClientFilter;
|
|
|
|
import org.springframework.cloud.loadbalancer.support.LoadBalancerClientFactory;
|
|
|
|
import org.springframework.cloud.loadbalancer.support.LoadBalancerClientFactory;
|
|
|
@ -54,8 +53,6 @@ public class ReactiveLoadBalancerClientFilterBeanPostProcessorTest {
|
|
|
|
@Mock
|
|
|
|
@Mock
|
|
|
|
private GatewayLoadBalancerProperties gatewayLoadBalancerProperties;
|
|
|
|
private GatewayLoadBalancerProperties gatewayLoadBalancerProperties;
|
|
|
|
@Mock
|
|
|
|
@Mock
|
|
|
|
private LoadBalancerProperties loadBalancerProperties;
|
|
|
|
|
|
|
|
@Mock
|
|
|
|
|
|
|
|
private StaticMetadataManager staticMetadataManager;
|
|
|
|
private StaticMetadataManager staticMetadataManager;
|
|
|
|
@Mock
|
|
|
|
@Mock
|
|
|
|
private RouterRuleLabelResolver routerRuleLabelResolver;
|
|
|
|
private RouterRuleLabelResolver routerRuleLabelResolver;
|
|
|
@ -72,7 +69,7 @@ public class ReactiveLoadBalancerClientFilterBeanPostProcessorTest {
|
|
|
|
.thenReturn(null);
|
|
|
|
.thenReturn(null);
|
|
|
|
|
|
|
|
|
|
|
|
ReactiveLoadBalancerClientFilter reactiveLoadBalancerClientFilter = new ReactiveLoadBalancerClientFilter(
|
|
|
|
ReactiveLoadBalancerClientFilter reactiveLoadBalancerClientFilter = new ReactiveLoadBalancerClientFilter(
|
|
|
|
loadBalancerClientFactory, gatewayLoadBalancerProperties, loadBalancerProperties);
|
|
|
|
loadBalancerClientFactory, gatewayLoadBalancerProperties);
|
|
|
|
|
|
|
|
|
|
|
|
ReactiveLoadBalancerClientFilterBeanPostProcessor processor = new ReactiveLoadBalancerClientFilterBeanPostProcessor();
|
|
|
|
ReactiveLoadBalancerClientFilterBeanPostProcessor processor = new ReactiveLoadBalancerClientFilterBeanPostProcessor();
|
|
|
|
processor.setBeanFactory(beanFactory);
|
|
|
|
processor.setBeanFactory(beanFactory);
|
|
|
|