test #I7SVZF 添加新的测试用例,用于测试不同名称占位符是否有效

This commit is contained in:
zy 2023-10-09 20:29:04 +08:00
parent b93358c05f
commit 30c42061fd
34 changed files with 250 additions and 1 deletions

View File

@ -50,4 +50,11 @@ public class AbstractChainJsonELDeclMultiSpringBootTest 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

@ -52,4 +52,11 @@ public class AbstractChainXmlELDeclMultiSpringbootTest 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

@ -51,4 +51,11 @@ public class AbstractChainYmlELDeclMultiSpringBootTest 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

@ -26,6 +26,15 @@
"extends": "base",
"abstract": true,
"value": "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
},
{
"id": "base3",
"value": "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain});"
},
{
"id": "implD",
"extends": "base3",
"value": "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"
}
]
}

View File

@ -23,6 +23,16 @@
{0}=THEN(a,b,{3});
{1}=SWITCH(f).to({4},k);
</chain>
<chain 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>

View File

@ -16,3 +16,8 @@ flow:
extends: base
abstract: true
value: "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
- id: base3
value: "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain})"
- id: implD
extends: base3
value: "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"

View File

@ -50,4 +50,11 @@ public class AbstractChainJsonELDeclSpringBootTest 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

@ -52,4 +52,11 @@ public class AbstractChainXmlELDeclSpringbootTest 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

@ -51,4 +51,11 @@ public class AbstractChainYmlELDeclSpringBootTest 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

@ -26,6 +26,15 @@
"extends": "base",
"abstract": true,
"value": "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
},
{
"id": "base3",
"value": "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain});"
},
{
"id": "implD",
"extends": "base3",
"value": "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"
}
]
}

View File

@ -23,6 +23,16 @@
{0}=THEN(a,b,{3});
{1}=SWITCH(f).to({4},k);
</chain>
<chain 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>

View File

@ -16,3 +16,8 @@ flow:
extends: base
abstract: true
value: "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
- id: base3
value: "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain})"
- id: implD
extends: base3
value: "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"

View File

@ -48,4 +48,11 @@ public class AbstractChainJsonELTest 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

@ -47,4 +47,10 @@ public class AbstractChainXmlELTest 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

@ -46,4 +46,10 @@ public class AbstractChainYmlELTest 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

@ -62,6 +62,15 @@
"extends": "base",
"abstract": true,
"value": "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
},
{
"id": "base3",
"value": "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain});"
},
{
"id": "implD",
"extends": "base3",
"value": "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"
}
]
}

View File

@ -34,6 +34,16 @@
{0}=THEN(a,b,{3});
{1}=SWITCH(f).to({4},k);
</chain>
<chain 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>

View File

@ -34,3 +34,9 @@ flow:
extends: base
abstract: true
value: "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
- id: base3
value: "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain})"
- id: implD
extends: base3
value: "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"

View File

@ -41,4 +41,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==>a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
}
}

View File

@ -46,4 +46,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

@ -45,4 +45,11 @@ public class AbstractChainYmlELSpringBootTest 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

@ -26,6 +26,15 @@
"extends": "base",
"abstract": true,
"value": "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
},
{
"id": "base3",
"value": "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain});"
},
{
"id": "implD",
"extends": "base3",
"value": "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"
}
]
}

View File

@ -23,6 +23,17 @@
{0}=THEN(a,b,{3});
{1}=SWITCH(f).to({4},k);
</chain>
<chain 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>

View File

@ -16,3 +16,9 @@ flow:
extends: base
abstract: true
value: "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
- id: base3
value: "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain})"
- id: implD
extends: base3
value: "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"

View File

@ -54,7 +54,7 @@ public class AbstractChainJsonELSpringBootTest extends BaseTest {
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());
Assertions.assertEquals("a==>b==>a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
}
}

View File

@ -51,4 +51,11 @@ public class AbstractChainYmlELSpringBootTest 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

@ -24,6 +24,15 @@
"id": "base2",
"extends": "base",
"value": "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
},
{
"id": "base3",
"value": "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain});"
},
{
"id": "implD",
"extends": "base3",
"value": "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"
}
]
}

View File

@ -14,3 +14,8 @@ flow:
- id: base2
extends: base
value: "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
- id: base3
value: "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain})"
- id: implD
extends: base3
value: "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"

View File

@ -42,4 +42,11 @@ public class AbstractChainJsonELSpringTest 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

@ -43,4 +43,11 @@ public class AbstractChainXMLELSpringTest 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

@ -43,4 +43,11 @@ public class AbstractChainYMLELSpringTest 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

@ -26,6 +26,15 @@
"extends": "base",
"abstract": true,
"value": "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
},
{
"id": "base3",
"value": "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain});"
},
{
"id": "implD",
"extends": "base3",
"value": "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"
}
]
}

View File

@ -24,5 +24,17 @@
{1}=SWITCH(f).to({4},k);
</chain>
<chain 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>

View File

@ -16,3 +16,8 @@ flow:
extends: base
abstract: true
value: "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
- id: base3
value: "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain})"
- id: implD
extends: base3
value: "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"