From 9e44741867bc94d9ab33ff48210edf2f558b59eb Mon Sep 17 00:00:00 2001 From: lbw Date: Tue, 2 Jan 2024 13:38:42 +0800 Subject: [PATCH] :arrow_up: springboot version and add params ExpressionResolverTest test --- pom.xml | 6 +++--- .../expression/ExpressionResolverTest.java | 21 +++++++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 src/test/java/com/pig4cloud/plugin/idempotent/expression/ExpressionResolverTest.java diff --git a/pom.xml b/pom.xml index 19e9b4b..05200b7 100644 --- a/pom.xml +++ b/pom.xml @@ -5,12 +5,12 @@ org.springframework.boot spring-boot-starter-parent - 3.2.0 + 3.2.1 com.pig4cloud.plugin idempotent-spring-boot-starter - 0.4.0 + 0.1.0-SNAPSHOT idempotent An idempotent solution https://pig4cloud.com @@ -38,7 +38,7 @@ 17 3.0.0 - 3.24.3 + 3.25.2 0.0.32 diff --git a/src/test/java/com/pig4cloud/plugin/idempotent/expression/ExpressionResolverTest.java b/src/test/java/com/pig4cloud/plugin/idempotent/expression/ExpressionResolverTest.java new file mode 100644 index 0000000..5105a33 --- /dev/null +++ b/src/test/java/com/pig4cloud/plugin/idempotent/expression/ExpressionResolverTest.java @@ -0,0 +1,21 @@ +package com.pig4cloud.plugin.idempotent.expression; + +import com.pig4cloud.plugin.idempotent.controller.DemoController; +import org.junit.jupiter.api.Test; +import org.springframework.core.DefaultParameterNameDiscoverer; +import org.springframework.core.ParameterNameDiscoverer; + +class ExpressionResolverTest { + + private static final ParameterNameDiscoverer DISCOVERER = new DefaultParameterNameDiscoverer(); + + + @Test + public void testParameterNameDiscoverer() throws Exception{ + String[] parameterNames = DISCOVERER.getParameterNames(DemoController.class.getDeclaredMethod("get",String.class)); + + for (String parameterName : parameterNames) { + System.out.println(parameterName); + } + } +}