Browse Source

Rename filter.route package to filter.factory

pull/41/head
Spencer Gibb 8 years ago
parent
commit
cee2dc71ed
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 2
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/actuate/GatewayEndpoint.java
  2. 32
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/config/GatewayAutoConfiguration.java
  3. 2
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/config/GatewayProperties.java
  4. 2
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/discovery/DiscoveryClientRouteLocator.java
  5. 2
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/AddRequestHeaderWebFilterFactory.java
  6. 2
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/AddRequestParameterWebFilterFactory.java
  7. 2
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/AddResponseHeaderWebFilterFactory.java
  8. 2
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/HystrixWebFilterFactory.java
  9. 2
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/PrefixPathWebFilterFactory.java
  10. 2
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/RedirectToWebFilterFactory.java
  11. 2
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/RemoveNonProxyHeadersWebFilterFactory.java
  12. 2
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/RemoveRequestHeaderWebFilterFactory.java
  13. 2
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/RemoveResponseHeaderWebFilterFactory.java
  14. 2
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/RewritePathWebFilterFactory.java
  15. 2
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/SecureHeadersProperties.java
  16. 2
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/SecureHeadersWebFilterFactory.java
  17. 2
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/SetPathWebFilterFactory.java
  18. 2
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/SetResponseHeaderWebFilterFactory.java
  19. 2
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/SetStatusWebFilterFactory.java
  20. 3
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/WebFilterFactory.java
  21. 2
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/handler/FilteringWebHandler.java
  22. 2
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/NameUtils.java
  23. 2
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/AddRequestHeaderWebFilterFactoryTests.java
  24. 2
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/AddRequestParameterWebFilterFactoryTests.java
  25. 2
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/HystrixWebFilterFactoryTests.java
  26. 2
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/RedirectToWebFilterFactoryTests.java
  27. 4
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/RemoveNonProxyHeadersWebFilterFactoryTests.java
  28. 2
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/RemoveRequestHeaderWebFilterFactoryTests.java
  29. 2
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/RemoveResponseHeaderWebFilterFactoryTests.java
  30. 2
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/RewritePathWebFilterFactoryIntegrationTests.java
  31. 2
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/RewritePathWebFilterFactoryTests.java
  32. 18
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/SecureHeadersWebFilterFactoryTests.java
  33. 2
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/SetPathWebFilterFactoryIntegrationTests.java
  34. 2
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/SetPathWebFilterFactoryTests.java
  35. 2
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/SetResponseWebFilterFactoryTests.java
  36. 2
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/SetStatusWebFilterFactoryTests.java
  37. 26
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/test/AdhocTestSuite.java

2
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/actuate/GatewayEndpoint.java

@ -29,7 +29,7 @@ import org.springframework.cloud.gateway.model.Route; @@ -29,7 +29,7 @@ import org.springframework.cloud.gateway.model.Route;
import org.springframework.cloud.gateway.api.RouteLocator;
import org.springframework.cloud.gateway.api.RouteWriter;
import org.springframework.cloud.gateway.filter.GlobalFilter;
import org.springframework.cloud.gateway.filter.route.WebFilterFactory;
import org.springframework.cloud.gateway.filter.factory.WebFilterFactory;
import org.springframework.cloud.gateway.handler.FilteringWebHandler;
import org.springframework.cloud.gateway.support.NotFoundException;
import org.springframework.cloud.gateway.support.RefreshRoutesEvent;

32
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/config/GatewayAutoConfiguration.java

@ -33,22 +33,22 @@ import org.springframework.cloud.gateway.filter.LoadBalancerClientFilter; @@ -33,22 +33,22 @@ import org.springframework.cloud.gateway.filter.LoadBalancerClientFilter;
import org.springframework.cloud.gateway.filter.NettyRoutingFilter;
import org.springframework.cloud.gateway.filter.RouteToRequestUrlFilter;
import org.springframework.cloud.gateway.filter.WriteResponseFilter;
import org.springframework.cloud.gateway.filter.route.AddRequestHeaderWebFilterFactory;
import org.springframework.cloud.gateway.filter.route.AddRequestParameterWebFilterFactory;
import org.springframework.cloud.gateway.filter.route.AddResponseHeaderWebFilterFactory;
import org.springframework.cloud.gateway.filter.route.HystrixWebFilterFactory;
import org.springframework.cloud.gateway.filter.route.PrefixPathWebFilterFactory;
import org.springframework.cloud.gateway.filter.route.RedirectToWebFilterFactory;
import org.springframework.cloud.gateway.filter.route.RemoveNonProxyHeadersWebFilterFactory;
import org.springframework.cloud.gateway.filter.route.RemoveRequestHeaderWebFilterFactory;
import org.springframework.cloud.gateway.filter.route.RemoveResponseHeaderWebFilterFactory;
import org.springframework.cloud.gateway.filter.route.RewritePathWebFilterFactory;
import org.springframework.cloud.gateway.filter.route.SecureHeadersWebFilterFactory;
import org.springframework.cloud.gateway.filter.route.SetResponseHeaderWebFilterFactory;
import org.springframework.cloud.gateway.filter.route.WebFilterFactory;
import org.springframework.cloud.gateway.filter.route.SecureHeadersProperties;
import org.springframework.cloud.gateway.filter.route.SetPathWebFilterFactory;
import org.springframework.cloud.gateway.filter.route.SetStatusWebFilterFactory;
import org.springframework.cloud.gateway.filter.factory.AddRequestHeaderWebFilterFactory;
import org.springframework.cloud.gateway.filter.factory.AddRequestParameterWebFilterFactory;
import org.springframework.cloud.gateway.filter.factory.AddResponseHeaderWebFilterFactory;
import org.springframework.cloud.gateway.filter.factory.HystrixWebFilterFactory;
import org.springframework.cloud.gateway.filter.factory.PrefixPathWebFilterFactory;
import org.springframework.cloud.gateway.filter.factory.RedirectToWebFilterFactory;
import org.springframework.cloud.gateway.filter.factory.RemoveNonProxyHeadersWebFilterFactory;
import org.springframework.cloud.gateway.filter.factory.RemoveRequestHeaderWebFilterFactory;
import org.springframework.cloud.gateway.filter.factory.RemoveResponseHeaderWebFilterFactory;
import org.springframework.cloud.gateway.filter.factory.RewritePathWebFilterFactory;
import org.springframework.cloud.gateway.filter.factory.SecureHeadersWebFilterFactory;
import org.springframework.cloud.gateway.filter.factory.SetResponseHeaderWebFilterFactory;
import org.springframework.cloud.gateway.filter.factory.WebFilterFactory;
import org.springframework.cloud.gateway.filter.factory.SecureHeadersProperties;
import org.springframework.cloud.gateway.filter.factory.SetPathWebFilterFactory;
import org.springframework.cloud.gateway.filter.factory.SetStatusWebFilterFactory;
import org.springframework.cloud.gateway.handler.FilteringWebHandler;
import org.springframework.cloud.gateway.handler.NettyRoutingWebHandler;
import org.springframework.cloud.gateway.handler.RequestPredicateHandlerMapping;

2
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/config/GatewayProperties.java

@ -26,7 +26,7 @@ import javax.validation.constraints.NotNull; @@ -26,7 +26,7 @@ import javax.validation.constraints.NotNull;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.gateway.model.FilterDefinition;
import org.springframework.cloud.gateway.model.Route;
import org.springframework.cloud.gateway.filter.route.RemoveNonProxyHeadersWebFilterFactory;
import org.springframework.cloud.gateway.filter.factory.RemoveNonProxyHeadersWebFilterFactory;
import static org.springframework.cloud.gateway.support.NameUtils.normalizeFilterName;

2
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/discovery/DiscoveryClientRouteLocator.java

@ -22,7 +22,7 @@ import java.util.Collections; @@ -22,7 +22,7 @@ import java.util.Collections;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.cloud.gateway.api.RouteLocator;
import org.springframework.cloud.gateway.filter.route.RewritePathWebFilterFactory;
import org.springframework.cloud.gateway.filter.factory.RewritePathWebFilterFactory;
import org.springframework.cloud.gateway.handler.predicate.PathRequestPredicateFactory;
import org.springframework.cloud.gateway.model.FilterDefinition;
import org.springframework.cloud.gateway.model.PredicateDefinition;

2
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/route/AddRequestHeaderWebFilterFactory.java → spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/AddRequestHeaderWebFilterFactory.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.springframework.web.server.WebFilter;
import org.springframework.http.server.reactive.ServerHttpRequest;

2
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/route/AddRequestParameterWebFilterFactory.java → spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/AddRequestParameterWebFilterFactory.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import java.net.URI;
import java.net.URISyntaxException;

2
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/route/AddResponseHeaderWebFilterFactory.java → spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/AddResponseHeaderWebFilterFactory.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.springframework.web.server.WebFilter;

2
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/route/HystrixWebFilterFactory.java → spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/HystrixWebFilterFactory.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.springframework.web.server.ServerWebExchange;
import org.springframework.web.server.WebFilter;

2
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/route/PrefixPathWebFilterFactory.java → spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/PrefixPathWebFilterFactory.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.web.server.WebFilter;

2
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/route/RedirectToWebFilterFactory.java → spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/RedirectToWebFilterFactory.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import java.net.MalformedURLException;
import java.net.URI;

2
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/route/RemoveNonProxyHeadersWebFilterFactory.java → spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/RemoveNonProxyHeadersWebFilterFactory.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.http.server.reactive.ServerHttpRequest;

2
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/route/RemoveRequestHeaderWebFilterFactory.java → spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/RemoveRequestHeaderWebFilterFactory.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.springframework.web.server.WebFilter;
import org.springframework.http.server.reactive.ServerHttpRequest;

2
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/route/RemoveResponseHeaderWebFilterFactory.java → spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/RemoveResponseHeaderWebFilterFactory.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.springframework.web.server.WebFilter;

2
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/route/RewritePathWebFilterFactory.java → spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/RewritePathWebFilterFactory.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.springframework.web.server.WebFilter;
import org.springframework.http.server.reactive.ServerHttpRequest;

2
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/route/SecureHeadersProperties.java → spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/SecureHeadersProperties.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.springframework.boot.context.properties.ConfigurationProperties;

2
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/route/SecureHeadersWebFilterFactory.java → spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/SecureHeadersWebFilterFactory.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.springframework.http.HttpHeaders;
import org.springframework.web.server.WebFilter;

2
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/route/SetPathWebFilterFactory.java → spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/SetPathWebFilterFactory.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import java.net.URI;
import java.util.Map;

2
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/route/SetResponseHeaderWebFilterFactory.java → spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/SetResponseHeaderWebFilterFactory.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.springframework.web.server.WebFilter;

2
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/route/SetStatusWebFilterFactory.java → spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/SetStatusWebFilterFactory.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.springframework.cloud.gateway.support.ServerWebExchangeUtils;
import org.springframework.http.HttpStatus;

3
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/route/WebFilterFactory.java → spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/WebFilterFactory.java

@ -15,8 +15,7 @@ @@ -15,8 +15,7 @@
*
*/
//TODO: move to package factory
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.springframework.cloud.gateway.support.NameUtils;
import org.springframework.util.Assert;

2
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/handler/FilteringWebHandler.java

@ -31,7 +31,7 @@ import java.util.stream.Collectors; @@ -31,7 +31,7 @@ import java.util.stream.Collectors;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.cloud.gateway.filter.route.WebFilterFactory;
import org.springframework.cloud.gateway.filter.factory.WebFilterFactory;
import org.springframework.cloud.gateway.model.FilterDefinition;
import org.springframework.cloud.gateway.model.Route;
import org.springframework.cloud.gateway.config.GatewayProperties;

2
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/NameUtils.java

@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
package org.springframework.cloud.gateway.support;
import org.springframework.cloud.gateway.filter.route.WebFilterFactory;
import org.springframework.cloud.gateway.filter.factory.WebFilterFactory;
import org.springframework.cloud.gateway.handler.predicate.RequestPredicateFactory;
/**

2
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/route/AddRequestHeaderWebFilterFactoryTests.java → spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/AddRequestHeaderWebFilterFactoryTests.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import java.util.Map;

2
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/route/AddRequestParameterWebFilterFactoryTests.java → spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/AddRequestParameterWebFilterFactoryTests.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import java.util.Map;

2
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/route/HystrixWebFilterFactoryTests.java → spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/HystrixWebFilterFactoryTests.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.junit.Test;
import org.junit.runner.RunWith;

2
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/route/RedirectToWebFilterFactoryTests.java → spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/RedirectToWebFilterFactoryTests.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.junit.Test;
import org.junit.runner.RunWith;

4
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/route/RemoveNonProxyHeadersWebFilterFactoryTests.java → spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/RemoveNonProxyHeadersWebFilterFactoryTests.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import java.util.Map;
@ -32,7 +32,7 @@ import org.springframework.test.context.junit4.SpringRunner; @@ -32,7 +32,7 @@ import org.springframework.test.context.junit4.SpringRunner;
import static org.assertj.core.api.Assertions.assertThat;
import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT;
import static org.springframework.cloud.gateway.filter.route.RemoveNonProxyHeadersWebFilterFactory.DEFAULT_HEADERS_TO_REMOVE;
import static org.springframework.cloud.gateway.filter.factory.RemoveNonProxyHeadersWebFilterFactory.DEFAULT_HEADERS_TO_REMOVE;
import static org.springframework.cloud.gateway.test.TestUtils.getMap;
import static org.springframework.web.reactive.function.BodyExtractors.toMono;

2
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/route/RemoveRequestHeaderWebFilterFactoryTests.java → spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/RemoveRequestHeaderWebFilterFactoryTests.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import java.util.Map;

2
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/route/RemoveResponseHeaderWebFilterFactoryTests.java → spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/RemoveResponseHeaderWebFilterFactoryTests.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.junit.Test;
import org.junit.runner.RunWith;

2
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/route/RewritePathWebFilterFactoryIntegrationTests.java → spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/RewritePathWebFilterFactoryIntegrationTests.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.junit.Test;
import org.junit.runner.RunWith;

2
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/route/RewritePathWebFilterFactoryTests.java → spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/RewritePathWebFilterFactoryTests.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.assertj.core.api.Assertions;
import org.junit.Test;

18
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/route/SecureHeadersWebFilterFactoryTests.java → spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/SecureHeadersWebFilterFactoryTests.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.junit.Test;
import org.junit.runner.RunWith;
@ -32,14 +32,14 @@ import org.springframework.web.reactive.function.client.ClientResponse; @@ -32,14 +32,14 @@ import org.springframework.web.reactive.function.client.ClientResponse;
import static org.assertj.core.api.Assertions.assertThat;
import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT;
import static org.springframework.cloud.gateway.filter.route.SecureHeadersWebFilterFactory.CONTENT_SECURITY_POLICY_HEADER;
import static org.springframework.cloud.gateway.filter.route.SecureHeadersWebFilterFactory.REFERRER_POLICY_HEADER;
import static org.springframework.cloud.gateway.filter.route.SecureHeadersWebFilterFactory.STRICT_TRANSPORT_SECURITY_HEADER;
import static org.springframework.cloud.gateway.filter.route.SecureHeadersWebFilterFactory.X_CONTENT_TYPE_OPTIONS_HEADER;
import static org.springframework.cloud.gateway.filter.route.SecureHeadersWebFilterFactory.X_DOWNLOAD_OPTIONS_HEADER;
import static org.springframework.cloud.gateway.filter.route.SecureHeadersWebFilterFactory.X_FRAME_OPTIONS_HEADER;
import static org.springframework.cloud.gateway.filter.route.SecureHeadersWebFilterFactory.X_PERMITTED_CROSS_DOMAIN_POLICIES_HEADER;
import static org.springframework.cloud.gateway.filter.route.SecureHeadersWebFilterFactory.X_XSS_PROTECTION_HEADER;
import static org.springframework.cloud.gateway.filter.factory.SecureHeadersWebFilterFactory.CONTENT_SECURITY_POLICY_HEADER;
import static org.springframework.cloud.gateway.filter.factory.SecureHeadersWebFilterFactory.REFERRER_POLICY_HEADER;
import static org.springframework.cloud.gateway.filter.factory.SecureHeadersWebFilterFactory.STRICT_TRANSPORT_SECURITY_HEADER;
import static org.springframework.cloud.gateway.filter.factory.SecureHeadersWebFilterFactory.X_CONTENT_TYPE_OPTIONS_HEADER;
import static org.springframework.cloud.gateway.filter.factory.SecureHeadersWebFilterFactory.X_DOWNLOAD_OPTIONS_HEADER;
import static org.springframework.cloud.gateway.filter.factory.SecureHeadersWebFilterFactory.X_FRAME_OPTIONS_HEADER;
import static org.springframework.cloud.gateway.filter.factory.SecureHeadersWebFilterFactory.X_PERMITTED_CROSS_DOMAIN_POLICIES_HEADER;
import static org.springframework.cloud.gateway.filter.factory.SecureHeadersWebFilterFactory.X_XSS_PROTECTION_HEADER;
import static org.springframework.cloud.gateway.test.TestUtils.assertStatus;
import reactor.core.publisher.Mono;

2
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/route/SetPathWebFilterFactoryIntegrationTests.java → spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/SetPathWebFilterFactoryIntegrationTests.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.junit.Test;
import org.junit.runner.RunWith;

2
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/route/SetPathWebFilterFactoryTests.java → spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/SetPathWebFilterFactoryTests.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import java.util.HashMap;

2
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/route/SetResponseWebFilterFactoryTests.java → spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/SetResponseWebFilterFactoryTests.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.junit.Test;
import org.junit.runner.RunWith;

2
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/route/SetStatusWebFilterFactoryTests.java → spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/factory/SetStatusWebFilterFactoryTests.java

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.gateway.filter.route;
package org.springframework.cloud.gateway.filter.factory;
import org.junit.Test;
import org.junit.runner.RunWith;

26
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/test/AdhocTestSuite.java

@ -21,19 +21,19 @@ import org.junit.Ignore; @@ -21,19 +21,19 @@ import org.junit.Ignore;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
import org.springframework.cloud.gateway.filter.route.AddRequestHeaderWebFilterFactoryTests;
import org.springframework.cloud.gateway.filter.route.AddRequestParameterWebFilterFactoryTests;
import org.springframework.cloud.gateway.filter.route.HystrixWebFilterFactoryTests;
import org.springframework.cloud.gateway.filter.route.RedirectToWebFilterFactoryTests;
import org.springframework.cloud.gateway.filter.route.RemoveNonProxyHeadersWebFilterFactoryTests;
import org.springframework.cloud.gateway.filter.route.RemoveRequestHeaderWebFilterFactoryTests;
import org.springframework.cloud.gateway.filter.route.RewritePathWebFilterFactoryIntegrationTests;
import org.springframework.cloud.gateway.filter.route.RewritePathWebFilterFactoryTests;
import org.springframework.cloud.gateway.filter.route.SecureHeadersWebFilterFactoryTests;
import org.springframework.cloud.gateway.filter.route.SetPathWebFilterFactoryIntegrationTests;
import org.springframework.cloud.gateway.filter.route.SetPathWebFilterFactoryTests;
import org.springframework.cloud.gateway.filter.route.SetResponseWebFilterFactoryTests;
import org.springframework.cloud.gateway.filter.route.SetStatusWebFilterFactoryTests;
import org.springframework.cloud.gateway.filter.factory.AddRequestHeaderWebFilterFactoryTests;
import org.springframework.cloud.gateway.filter.factory.AddRequestParameterWebFilterFactoryTests;
import org.springframework.cloud.gateway.filter.factory.HystrixWebFilterFactoryTests;
import org.springframework.cloud.gateway.filter.factory.RedirectToWebFilterFactoryTests;
import org.springframework.cloud.gateway.filter.factory.RemoveNonProxyHeadersWebFilterFactoryTests;
import org.springframework.cloud.gateway.filter.factory.RemoveRequestHeaderWebFilterFactoryTests;
import org.springframework.cloud.gateway.filter.factory.RewritePathWebFilterFactoryIntegrationTests;
import org.springframework.cloud.gateway.filter.factory.RewritePathWebFilterFactoryTests;
import org.springframework.cloud.gateway.filter.factory.SecureHeadersWebFilterFactoryTests;
import org.springframework.cloud.gateway.filter.factory.SetPathWebFilterFactoryIntegrationTests;
import org.springframework.cloud.gateway.filter.factory.SetPathWebFilterFactoryTests;
import org.springframework.cloud.gateway.filter.factory.SetResponseWebFilterFactoryTests;
import org.springframework.cloud.gateway.filter.factory.SetStatusWebFilterFactoryTests;
import org.springframework.cloud.gateway.handler.predicate.AfterRequestPredicateFactoryTests;
import org.springframework.cloud.gateway.handler.predicate.BeforeRequestPredicateFactoryTests;
import org.springframework.cloud.gateway.handler.predicate.BetweenRequestPredicateFactoryTests;

Loading…
Cancel
Save