Browse Source

liteflow-solon-plugin 移除弃用接口

noear 8 months ago
parent
commit
b751ae877b

+ 3 - 3
liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/spi/solon/SolonPathContentParser.java

@@ -9,7 +9,7 @@ import cn.hutool.core.util.StrUtil;
 import com.yomahub.liteflow.exception.ConfigErrorException;
 import com.yomahub.liteflow.spi.PathContentParser;
 import com.yomahub.liteflow.util.PathMatchUtil;
-import org.noear.solon.Utils;
+import org.noear.solon.core.util.ResourceUtil;
 
 import java.io.File;
 import java.net.MalformedURLException;
@@ -61,8 +61,8 @@ public class SolonPathContentParser implements PathContentParser {
 					path = path.substring(ResourceUtils.CLASSPATH_URL_PREFIX.length());
 				}
 
-				if (Utils.getResource(path) != null) {
-					allResource.add(Utils.getResource(path));
+				if (ResourceUtil.getResource(path) != null) {
+					allResource.add(ResourceUtil.getResource(path));
 				}
 			}
 		}

+ 0 - 2
liteflow-testcase-el/liteflow-testcase-el-solon/src/test/java/com/yomahub/liteflow/test/retry/RetrySpringbootTest.java

@@ -6,11 +6,9 @@ import com.yomahub.liteflow.flow.LiteflowResponse;
 import com.yomahub.liteflow.test.BaseTest;
 import org.junit.jupiter.api.Assertions;
 import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.ExtendWith;
 import org.noear.solon.annotation.Import;
 import org.noear.solon.annotation.Inject;
 import org.noear.solon.test.SolonTest;
-import org.noear.solon.test.annotation.TestPropertySource;
 
 @SolonTest
 @Import(profiles="classpath:/retry/application.properties")