浏览代码

更新测试案例

(cherry picked from commit ecfbf63e46a71d35d6d9979aac055b55097c78bb)
wang 2 年之前
父节点
当前提交
be86e26f43

+ 2 - 2
class-winter-core/src/test/java/winter/com/ideaaedi/classwinter/AllTest.java

@@ -68,11 +68,11 @@ public class AllTest {
         // 加密
         String projectRootDir = PathUtil.getProjectRootDir(AllTest.class);
         String originJarOrWar = projectRootDir + "my-project-with-encrypted-lib-have-pwd.jar";
-        String includePrefix = "com.szlaozicl?cca=true&cfa=true,com.aspire.ssm,org.springframework.aop.target.dynamic,com.fasterxml.jackson";
+        String includePrefix = "com.szlaozicl?cca=true&cfa=true,com.aspire.ssm,org.springframework.aop.target.dynamic,com.*.jackson";
         String excludePrefix = "com.aspire.ssm.config,com.aspire.ssm.util.Person";
         String finalName = "jd";
         String password = "pwd12345";
-        String includeLibs = "spring-aop-5.2.7.RELEASE.jar,jackson-core-2.10.4.jar";
+        String includeLibs = "spring-aop-5.2.7.RELEASE.jar,jackson-.*.jar";
         String tips = "方法已经被class-winter加密保护了,请不要直接使用java -jar xxx.jar启动项目,请使用java -javaagent:xxx.jar -jar xxx.jar启动项目.";
         String alreadyProtectedLibs = "encrypted-lib-have-pwd-1.0.0.jar:qwer123~";
         String jvmArgCheck = "-XX:+DisableAttachMechanism";

二进制
class-winter-core/src/test/resources/class-winter-core-2.8.6.jar