mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
增加绝对路径和项目内路径的混合设置的测试用例
This commit is contained in:
@@ -60,6 +60,16 @@ public class AbsoluteConfigPathELSpringbootTest extends BaseTest {
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAbsPath3() throws Exception{
|
||||
Assertions.assertTrue(() -> {
|
||||
LiteflowConfig config = LiteflowConfigGetter.get();
|
||||
config.setRuleSource(StrUtil.format("{}/sub/a/*.xml,sub/b/*.xml",rootDir));
|
||||
flowExecutor.reloadRule();
|
||||
return flowExecutor.execute2Resp("chain2", "arg").isSuccess();
|
||||
});
|
||||
}
|
||||
|
||||
@BeforeAll
|
||||
public static void createFiles() {
|
||||
rootDir = FileUtil.getAbsolutePath(ResourceUtil.getResource("").getPath());
|
||||
|
||||
Reference in New Issue
Block a user