-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⬆️ springboot version and add params ExpressionResolverTest test
- Loading branch information
lbw
committed
Jan 2, 2024
1 parent
1dbbfca
commit 9e44741
Showing
2 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/test/java/com/pig4cloud/plugin/idempotent/expression/ExpressionResolverTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
} |