Skip to content

Commit 6e6ceb5

Browse files
committed
Fixed supplier function test config to GET
See gh-3646
1 parent 41606b7 commit 6e6ceb5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spring-cloud-gateway-server-mvc/src/test/java/org/springframework/cloud/gateway/server/mvc/handler/FunctionHandlerTests.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import java.util.function.Function;
2121
import java.util.function.Supplier;
2222

23-
import org.junit.jupiter.api.Disabled;
2423
import org.junit.jupiter.api.Test;
2524

2625
import org.springframework.beans.factory.annotation.Autowired;
@@ -68,7 +67,6 @@ public void testTemplatedFunctionWorks() {
6867
.isEqualTo("HELLO");
6968
}
7069

71-
@Disabled
7270
@Test
7371
public void testSupplierFunctionWorks() {
7472
restClient.get()
@@ -105,7 +103,7 @@ public RouterFunction<ServerResponse> gatewayRouterFunctionsSimpleFunction() {
105103
.POST("/templatedfunction/{fnName}", fn("{fnName}"))
106104
.build())
107105
.and(route("testsupplierfunction")
108-
.POST("/supplierfunction", fn("hello"))
106+
.GET("/supplierfunction", fn("hello"))
109107
.build());
110108
// @formatter:on
111109
}

0 commit comments

Comments
 (0)