@ -93,37 +70,43 @@ public class RetryGatewayFilterFactory implements GatewayFilterFactory {
@@ -93,37 +70,43 @@ public class RetryGatewayFilterFactory implements GatewayFilterFactory {
@ -54,6 +57,16 @@ public class RetryGatewayFilterFactoryIntegrationTests extends BaseWebClientTest
@@ -54,6 +57,16 @@ public class RetryGatewayFilterFactoryIntegrationTests extends BaseWebClientTest
.expectBody(String.class).isEqualTo("3");
}
@Test
publicvoidretryFilterGetJavaDsl(){
testClient.get()
.uri("/retry?key=getjava&count=2")
.header(HttpHeaders.HOST,"www.retryjava.org")
.exchange()
.expectStatus().isOk()
.expectBody(String.class).isEqualTo("2");
}
@Test
//TODO: support post
publicvoidretryFilterPost(){
@ -71,18 +84,32 @@ public class RetryGatewayFilterFactoryIntegrationTests extends BaseWebClientTest
@@ -71,18 +84,32 @@ public class RetryGatewayFilterFactoryIntegrationTests extends BaseWebClientTest