优化测试用例

This commit is contained in:
everywhere.z
2022-07-13 21:59:19 +08:00
parent d22fb2d0c1
commit 965b4c0aef
2 changed files with 4 additions and 4 deletions

View File

@@ -32,8 +32,8 @@ public class SwitchELSpringbootTest extends BaseTest {
//run QlExpress Exception at line 1 :
// switch().to(): 只有一个node时出错
@Test
public void testBase1() throws Exception{
LiteflowResponse response = flowExecutor.execute2Resp("testBase1", "arg");
public void testSwitchError() throws Exception{
LiteflowResponse response = flowExecutor.execute2Resp("chain1", "arg");
Assert.assertTrue(response.isSuccess());
}
}

View File

@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<flow>
<chain name="testBase1">
<chain name="chain1">
THEN(
a,
SWITCH(e).to(d)
SWITCH(e).to(d),
b
);
</chain>