From 6e6ceb5dffb46d1130bb07e32692e6224b4f0132 Mon Sep 17 00:00:00 2001 From: spencergibb Date: Wed, 5 Feb 2025 11:35:10 -0500 Subject: [PATCH] Fixed supplier function test config to GET See gh-3646 --- .../gateway/server/mvc/handler/FunctionHandlerTests.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spring-cloud-gateway-server-mvc/src/test/java/org/springframework/cloud/gateway/server/mvc/handler/FunctionHandlerTests.java b/spring-cloud-gateway-server-mvc/src/test/java/org/springframework/cloud/gateway/server/mvc/handler/FunctionHandlerTests.java index 73de8492..c2090807 100644 --- a/spring-cloud-gateway-server-mvc/src/test/java/org/springframework/cloud/gateway/server/mvc/handler/FunctionHandlerTests.java +++ b/spring-cloud-gateway-server-mvc/src/test/java/org/springframework/cloud/gateway/server/mvc/handler/FunctionHandlerTests.java @@ -20,7 +20,6 @@ import java.util.Locale; import java.util.function.Function; import java.util.function.Supplier; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; @@ -68,7 +67,6 @@ public class FunctionHandlerTests { .isEqualTo("HELLO"); } - @Disabled @Test public void testSupplierFunctionWorks() { restClient.get() @@ -105,7 +103,7 @@ public class FunctionHandlerTests { .POST("/templatedfunction/{fnName}", fn("{fnName}")) .build()) .and(route("testsupplierfunction") - .POST("/supplierfunction", fn("hello")) + .GET("/supplierfunction", fn("hello")) .build()); // @formatter:on }