mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
修复windows场景下无法解析模糊路径的bug
This commit is contained in:
@@ -50,6 +50,16 @@ public class AbsoluteConfigPathTest extends BaseTest {
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAbsPath() throws Exception{
|
||||
Assertions.assertTrue(() -> {
|
||||
LiteflowConfig config = new LiteflowConfig();
|
||||
config.setRuleSource(StrUtil.format("{}\\sub\\**\\*.xml",rootDir));
|
||||
flowExecutor = FlowExecutorHolder.loadInstance(config);
|
||||
return flowExecutor.execute2Resp("chain1", "arg").isSuccess();
|
||||
});
|
||||
}
|
||||
|
||||
@BeforeAll
|
||||
public static void createFiles() {
|
||||
rootDir = FileUtil.getAbsolutePath(ResourceUtil.getResource("").getPath());
|
||||
|
||||
Reference in New Issue
Block a user