mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 20:22:07 +08:00
优化测试用例
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user