Skip to content

Commit

Permalink
⬆️ springboot version and add params ExpressionResolverTest test
Browse files Browse the repository at this point in the history
  • Loading branch information
lbw committed Jan 2, 2024
1 parent 1dbbfca commit 9e44741
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.0</version>
<version>3.2.1</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.pig4cloud.plugin</groupId>
<artifactId>idempotent-spring-boot-starter</artifactId>
<version>0.4.0</version>
<version>0.1.0-SNAPSHOT</version>
<name>idempotent</name>
<description>An idempotent solution</description>
<url>https://pig4cloud.com</url>
Expand Down Expand Up @@ -38,7 +38,7 @@
<properties>
<java.version>17</java.version>
<mica.version>3.0.0</mica.version>
<redisson.version>3.24.3</redisson.version>
<redisson.version>3.25.2</redisson.version>
<spring.checkstyle.plugin>0.0.32</spring.checkstyle.plugin>
</properties>

Expand Down
Original file line number Diff line number Diff line change
@@ -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);
}
}
}

0 comments on commit 9e44741

Please sign in to comment.