增加绝对路径和项目内路径的混合设置的测试用例

This commit is contained in:
everywhere.z
2023-11-05 21:10:08 +08:00
parent 34018069a2
commit 7299e9fd30

View File

@@ -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());