diff --git a/.github/workflows/oss-snapshot-deploy.yml b/.github/workflows/oss-snapshot-deploy.yml index 9cec15e..4373ea2 100644 --- a/.github/workflows/oss-snapshot-deploy.yml +++ b/.github/workflows/oss-snapshot-deploy.yml @@ -34,7 +34,7 @@ jobs: - name: Publish to Maven Central if: contains('${{ env.RELEASE_VERSION }}', 'SNAPSHOT') - run: mvn clean deploy -P snapshot -Dmaven.test.skip=true + run: mvn clean deploy -P snapshot env: MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} diff --git a/src/test/java/com/pig4cloud/plugin/idempotent/expression/ExpressionResolverTest.java b/src/test/java/com/pig4cloud/plugin/idempotent/expression/ExpressionResolverTest.java index 5105a33..c898ff4 100644 --- a/src/test/java/com/pig4cloud/plugin/idempotent/expression/ExpressionResolverTest.java +++ b/src/test/java/com/pig4cloud/plugin/idempotent/expression/ExpressionResolverTest.java @@ -7,15 +7,16 @@ class ExpressionResolverTest { - private static final ParameterNameDiscoverer DISCOVERER = new DefaultParameterNameDiscoverer(); + private static final ParameterNameDiscoverer DISCOVERER = new DefaultParameterNameDiscoverer(); + @Test + public void testParameterNameDiscoverer() throws Exception { + String[] parameterNames = DISCOVERER + .getParameterNames(DemoController.class.getDeclaredMethod("get", String.class)); - @Test - public void testParameterNameDiscoverer() throws Exception{ - String[] parameterNames = DISCOVERER.getParameterNames(DemoController.class.getDeclaredMethod("get",String.class)); + for (String parameterName : parameterNames) { + System.out.println(parameterName); + } + } - for (String parameterName : parameterNames) { - System.out.println(parameterName); - } - } }