test #I7SVZF 新增新命名规则下测试用例

This commit is contained in:
zy 2023-09-27 19:26:00 +08:00
parent 890535905c
commit cf0ab41d38
3 changed files with 27 additions and 1 deletions

View File

@ -50,4 +50,11 @@ public class AbstractChainJsonELSpringBootTest extends BaseTest {
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
}
@Test
public void test4() throws Exception {
LiteflowResponse response = flowExecutor.execute2Resp("implD", "arg");
Assertions.assertTrue(response.isSuccess());
Assertions.assertEquals("a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
}
}

View File

@ -52,4 +52,11 @@ public class AbstractChainXmlELSpringbootTest extends BaseTest {
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
}
@Test
public void test4() throws Exception {
LiteflowResponse response = flowExecutor.execute2Resp("implD", "arg");
Assertions.assertTrue(response.isSuccess());
Assertions.assertEquals("a==>b==>a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
}
}

View File

@ -6,7 +6,7 @@
</chain>
<chain id="implC" extends="base2">
{3}=THEN(a,b);
{3} = THEN(a,b);
{4}=THEN(a,b).id("j");
</chain>
@ -23,4 +23,16 @@
{0}=THEN(a,b,{3});
{1}=SWITCH(f).to({4},k);
</chain>
<chain abstract="true" name="base3">
THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain})
</chain>
<chain extends="base3" id="implD">
{_pre} = THEN(a,b);
{mainChain}=THEN(a,b);
{subChain1}=THEN(j,k);
{subChain2}=IF(c, d, e);
{end_chain}=SWITCH(f).to(j,k);
</chain>
</flow>