From f46b6024ae61182bbbfa9d2527c8d13077a9fb32 Mon Sep 17 00:00:00 2001 From: "everywhere.z" Date: Tue, 10 Jan 2023 19:07:50 +0800 Subject: [PATCH] =?UTF-8?q?bug=20#I69UVL=20=E5=A6=82=E6=9E=9Cswitch?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E4=B8=BA=E7=A9=BA=E6=88=96=E8=80=85null?= =?UTF-8?q?=EF=BC=8C=E6=97=A0=E6=B3=95=E9=80=89=E5=8F=96=E5=88=B0default?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../liteflow/test/switchcase/SwitchELSpringbootTest.java | 2 +- .../src/test/resources/switchcase/flow.el.xml | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/liteflow-testcase-el/liteflow-testcase-el-springboot/src/test/java/com/yomahub/liteflow/test/switchcase/SwitchELSpringbootTest.java b/liteflow-testcase-el/liteflow-testcase-el-springboot/src/test/java/com/yomahub/liteflow/test/switchcase/SwitchELSpringbootTest.java index 97755dd8d..d043364b9 100644 --- a/liteflow-testcase-el/liteflow-testcase-el-springboot/src/test/java/com/yomahub/liteflow/test/switchcase/SwitchELSpringbootTest.java +++ b/liteflow-testcase-el/liteflow-testcase-el-springboot/src/test/java/com/yomahub/liteflow/test/switchcase/SwitchELSpringbootTest.java @@ -87,7 +87,7 @@ public class SwitchELSpringbootTest extends BaseTest { //switch返回如果是空,会走default选项 @Test public void testSwitch8() throws Exception{ - LiteflowResponse response = flowExecutor.execute2Resp("chain7", "arg"); + LiteflowResponse response = flowExecutor.execute2Resp("chain8", "arg"); Assert.assertTrue(response.isSuccess()); Assert.assertEquals("a==>j==>d",response.getExecuteStepStr()); } diff --git a/liteflow-testcase-el/liteflow-testcase-el-springboot/src/test/resources/switchcase/flow.el.xml b/liteflow-testcase-el/liteflow-testcase-el-springboot/src/test/resources/switchcase/flow.el.xml index 794ad4505..227eaf43a 100644 --- a/liteflow-testcase-el/liteflow-testcase-el-springboot/src/test/resources/switchcase/flow.el.xml +++ b/liteflow-testcase-el/liteflow-testcase-el-springboot/src/test/resources/switchcase/flow.el.xml @@ -46,8 +46,14 @@ THEN( a, - SWITCH(j).to(b, c).DEFAULT(d) + SWITCH(i).to(b, c).DEFAULT(d) ); + + THEN( + a, + SWITCH(j).to(b, c).DEFAULT(d) + ); + \ No newline at end of file