mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
test:解析el.xml类型指定错误
This commit is contained in:
@@ -32,7 +32,7 @@ public class RefreshRuleTest extends BaseTest {
|
||||
@Test
|
||||
public void testRefresh1() throws Exception{
|
||||
String content = ResourceUtil.readUtf8Str("classpath: /refreshRule/flow_update.el.xml");
|
||||
FlowBus.refreshFlowMetaData(FlowParserTypeEnum.TYPE_XML, content);
|
||||
FlowBus.refreshFlowMetaData(FlowParserTypeEnum.TYPE_EL_XML, content);
|
||||
LiteflowResponse response = flowExecutor.execute2Resp("chain1", "arg");
|
||||
Assert.assertTrue(response.isSuccess());
|
||||
}
|
||||
@@ -44,7 +44,7 @@ public class RefreshRuleTest extends BaseTest {
|
||||
try {
|
||||
Thread.sleep(4000L);
|
||||
String content = ResourceUtil.readUtf8Str("classpath: /refreshRule/flow_update.el.xml");
|
||||
FlowBus.refreshFlowMetaData(FlowParserTypeEnum.TYPE_XML, content);
|
||||
FlowBus.refreshFlowMetaData(FlowParserTypeEnum.TYPE_EL_XML, content);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user