diff --git a/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/NodeTagSpringJsonTest.java b/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/NodeTagSpringJsonTest.java new file mode 100644 index 000000000..eda6ced41 --- /dev/null +++ b/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/NodeTagSpringJsonTest.java @@ -0,0 +1,61 @@ +package com.yomahub.liteflow.test.tag; + +import cn.hutool.core.collection.ConcurrentHashSet; +import com.yomahub.liteflow.core.FlowExecutor; +import com.yomahub.liteflow.entity.data.DefaultSlot; +import com.yomahub.liteflow.entity.data.LiteflowResponse; +import com.yomahub.liteflow.test.BaseTest; +import org.junit.Assert; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.SpringRunner; + +import javax.annotation.Resource; + +/** + * springboot环境下隐私投递的测试 + * @author Bryan.Zhang + * @since 2.5.0 + */ +@RunWith(SpringRunner.class) +@ContextConfiguration("classpath:/tag/application-json.xml") +public class NodeTagSpringJsonTest extends BaseTest { + + @Resource + private FlowExecutor flowExecutor; + + @Test + public void testTag1() throws Exception{ + LiteflowResponse response = flowExecutor.execute2Resp("chain1", "arg"); + Assert.assertTrue(response.isSuccess()); + Assert.assertEquals("123",response.getSlot().getData("test")); + } + + @Test + public void testTag2() throws Exception{ + LiteflowResponse response = flowExecutor.execute2Resp("chain2", "arg"); + Assert.assertTrue(response.isSuccess()); + Assert.assertEquals("a==>a==>a==>c==>e", response.getSlot().getExecuteStepStr()); + } + + //测试多线程when情况下的tag取值是否正确 + //这里循环多次的原因是,因为when多线程,有时候因为凑巧,可能正确。所以多次情况下在2.6.4版本肯定出错 + @Test + public void testTag3() throws Exception{ + for (int i = 0; i < 50; i++) { + LiteflowResponse response = flowExecutor.execute2Resp("chain3", "arg"); + Assert.assertTrue(response.isSuccess()); + ConcurrentHashSet testSet = response.getSlot().getData("test"); + Assert.assertEquals(3, testSet.size()); + } + } + + //测试tag是否能在isAccess中起效 + @Test + public void testTag4() throws Exception{ + LiteflowResponse response = flowExecutor.execute2Resp("chain4", "arg"); + Assert.assertTrue(response.isSuccess()); + Assert.assertEquals("g", response.getSlot().getExecuteStepStr()); + } +} diff --git a/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/NodeTagSpringXmlTest.java b/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/NodeTagSpringXmlTest.java new file mode 100644 index 000000000..854847034 --- /dev/null +++ b/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/NodeTagSpringXmlTest.java @@ -0,0 +1,61 @@ +package com.yomahub.liteflow.test.tag; + +import cn.hutool.core.collection.ConcurrentHashSet; +import com.yomahub.liteflow.core.FlowExecutor; +import com.yomahub.liteflow.entity.data.DefaultSlot; +import com.yomahub.liteflow.entity.data.LiteflowResponse; +import com.yomahub.liteflow.test.BaseTest; +import org.junit.Assert; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.SpringRunner; + +import javax.annotation.Resource; + +/** + * springboot环境下隐私投递的测试 + * @author Bryan.Zhang + * @since 2.5.0 + */ +@RunWith(SpringRunner.class) +@ContextConfiguration("classpath:/tag/application-xml.xml") +public class NodeTagSpringXmlTest extends BaseTest { + + @Resource + private FlowExecutor flowExecutor; + + @Test + public void testTag1() throws Exception{ + LiteflowResponse response = flowExecutor.execute2Resp("chain1", "arg"); + Assert.assertTrue(response.isSuccess()); + Assert.assertEquals("123",response.getSlot().getData("test")); + } + + @Test + public void testTag2() throws Exception{ + LiteflowResponse response = flowExecutor.execute2Resp("chain2", "arg"); + Assert.assertTrue(response.isSuccess()); + Assert.assertEquals("a==>a==>a==>c==>e", response.getSlot().getExecuteStepStr()); + } + + //测试多线程when情况下的tag取值是否正确 + //这里循环多次的原因是,因为when多线程,有时候因为凑巧,可能正确。所以多次情况下在2.6.4版本肯定出错 + @Test + public void testTag3() throws Exception{ + for (int i = 0; i < 50; i++) { + LiteflowResponse response = flowExecutor.execute2Resp("chain3", "arg"); + Assert.assertTrue(response.isSuccess()); + ConcurrentHashSet testSet = response.getSlot().getData("test"); + Assert.assertEquals(3, testSet.size()); + } + } + + //测试tag是否能在isAccess中起效 + @Test + public void testTag4() throws Exception{ + LiteflowResponse response = flowExecutor.execute2Resp("chain4", "arg"); + Assert.assertTrue(response.isSuccess()); + Assert.assertEquals("g", response.getSlot().getExecuteStepStr()); + } +} diff --git a/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/ACmp.java b/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/ACmp.java new file mode 100644 index 000000000..fd3b1dbab --- /dev/null +++ b/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/ACmp.java @@ -0,0 +1,30 @@ +/** + *

Title: liteflow

+ *

Description: 轻量级的组件式流程框架

+ * @author Bryan.Zhang + * @email weenyc31@163.com + * @Date 2020/4/1 + */ +package com.yomahub.liteflow.test.tag.cmp; + +import com.yomahub.liteflow.annotation.LiteflowComponent; +import com.yomahub.liteflow.core.NodeComponent; +import com.yomahub.liteflow.entity.data.Slot; + +@LiteflowComponent("a") +public class ACmp extends NodeComponent { + + @Override + public void process() { + String testKey = "test"; + + Slot slot = this.getSlot(); + if (slot.getData(testKey) == null){ + slot.setData(testKey,this.getTag()); + }else{ + String s = slot.getData(testKey); + s += this.getTag(); + slot.setData(testKey, s); + } + } +} diff --git a/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/B1Cmp.java b/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/B1Cmp.java new file mode 100644 index 000000000..fcc4c6024 --- /dev/null +++ b/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/B1Cmp.java @@ -0,0 +1,23 @@ +/** + *

Title: liteflow

+ *

Description: 轻量级的组件式流程框架

+ * @author Bryan.Zhang + * @email weenyc31@163.com + * @Date 2020/4/1 + */ +package com.yomahub.liteflow.test.tag.cmp; + +import cn.hutool.core.collection.ConcurrentHashSet; +import com.yomahub.liteflow.annotation.LiteflowComponent; +import com.yomahub.liteflow.core.NodeComponent; +import com.yomahub.liteflow.entity.data.Slot; + +@LiteflowComponent("b1") +public class B1Cmp extends NodeComponent { + + @Override + public void process() { + Slot slot = this.getSlot(); + slot.setData("test",new ConcurrentHashSet()); + } +} diff --git a/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/BCmp.java b/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/BCmp.java new file mode 100644 index 000000000..1e31246f0 --- /dev/null +++ b/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/BCmp.java @@ -0,0 +1,24 @@ +/** + *

Title: liteflow

+ *

Description: 轻量级的组件式流程框架

+ * @author Bryan.Zhang + * @email weenyc31@163.com + * @Date 2020/4/1 + */ +package com.yomahub.liteflow.test.tag.cmp; + +import cn.hutool.core.collection.ConcurrentHashSet; +import com.yomahub.liteflow.annotation.LiteflowComponent; +import com.yomahub.liteflow.core.NodeComponent; +import com.yomahub.liteflow.entity.data.Slot; + +@LiteflowComponent("b") +public class BCmp extends NodeComponent { + + @Override + public void process() { + Slot slot = this.getSlot(); + ConcurrentHashSet testSet = slot.getData("test"); + testSet.add(this.getTag()); + } +} diff --git a/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/CCmp.java b/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/CCmp.java new file mode 100644 index 000000000..40bb27d70 --- /dev/null +++ b/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/CCmp.java @@ -0,0 +1,24 @@ +/** + *

Title: liteflow

+ *

Description: 轻量级的组件式流程框架

+ * @author Bryan.Zhang + * @email weenyc31@163.com + * @Date 2020/4/1 + */ +package com.yomahub.liteflow.test.tag.cmp; + +import com.yomahub.liteflow.annotation.LiteflowComponent; +import com.yomahub.liteflow.core.NodeCondComponent; + +@LiteflowComponent("c") +public class CCmp extends NodeCondComponent { + + @Override + public String processCond() throws Exception { + if(this.getTag().equals("2")){ + return "e"; + }else{ + return "d"; + } + } +} diff --git a/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/DCmp.java b/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/DCmp.java new file mode 100644 index 000000000..572980b78 --- /dev/null +++ b/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/DCmp.java @@ -0,0 +1,21 @@ +/** + *

Title: liteflow

+ *

Description: 轻量级的组件式流程框架

+ * @author Bryan.Zhang + * @email weenyc31@163.com + * @Date 2020/4/1 + */ +package com.yomahub.liteflow.test.tag.cmp; + +import com.yomahub.liteflow.annotation.LiteflowComponent; +import com.yomahub.liteflow.core.NodeComponent; + +@LiteflowComponent("d") +public class DCmp extends NodeComponent { + + @Override + public void process() { + System.out.println(this.getTag()); + System.out.println("DCmp executed!"); + } +} diff --git a/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/ECmp.java b/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/ECmp.java new file mode 100644 index 000000000..11ee96c8a --- /dev/null +++ b/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/ECmp.java @@ -0,0 +1,21 @@ +/** + *

Title: liteflow

+ *

Description: 轻量级的组件式流程框架

+ * @author Bryan.Zhang + * @email weenyc31@163.com + * @Date 2020/4/1 + */ +package com.yomahub.liteflow.test.tag.cmp; + +import com.yomahub.liteflow.annotation.LiteflowComponent; +import com.yomahub.liteflow.core.NodeComponent; + +@LiteflowComponent("e") +public class ECmp extends NodeComponent { + + @Override + public void process() { + System.out.println(this.getTag()); + System.out.println("ECmp executed!"); + } +} diff --git a/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/FCmp.java b/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/FCmp.java new file mode 100644 index 000000000..2f670578e --- /dev/null +++ b/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/FCmp.java @@ -0,0 +1,25 @@ +/** + *

Title: liteflow

+ *

Description: 轻量级的组件式流程框架

+ * @author Bryan.Zhang + * @email weenyc31@163.com + * @Date 2020/4/1 + */ +package com.yomahub.liteflow.test.tag.cmp; + +import com.yomahub.liteflow.annotation.LiteflowComponent; +import com.yomahub.liteflow.core.NodeComponent; + +@LiteflowComponent("f") +public class FCmp extends NodeComponent { + + @Override + public void process() { + System.out.println("FCmp executed!"); + } + + @Override + public boolean isAccess() { + return Boolean.parseBoolean(this.getTag()); + } +} diff --git a/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/GCmp.java b/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/GCmp.java new file mode 100644 index 000000000..f6180b563 --- /dev/null +++ b/liteflow-testcase-springnative/src/test/java/com/yomahub/liteflow/test/tag/cmp/GCmp.java @@ -0,0 +1,20 @@ +/** + *

Title: liteflow

+ *

Description: 轻量级的组件式流程框架

+ * @author Bryan.Zhang + * @email weenyc31@163.com + * @Date 2020/4/1 + */ +package com.yomahub.liteflow.test.tag.cmp; + +import com.yomahub.liteflow.annotation.LiteflowComponent; +import com.yomahub.liteflow.core.NodeComponent; + +@LiteflowComponent("g") +public class GCmp extends NodeComponent { + + @Override + public void process() { + System.out.println("GCmp executed!"); + } +} diff --git a/liteflow-testcase-springnative/src/test/resources/absoluteConfigPath/application.xml b/liteflow-testcase-springnative/src/test/resources/absoluteConfigPath/application.xml index 510b264ba..fbcaa2645 100644 --- a/liteflow-testcase-springnative/src/test/resources/absoluteConfigPath/application.xml +++ b/liteflow-testcase-springnative/src/test/resources/absoluteConfigPath/application.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/aop/application-custom.xml b/liteflow-testcase-springnative/src/test/resources/aop/application-custom.xml index fd0cde74a..cc70b3ed0 100644 --- a/liteflow-testcase-springnative/src/test/resources/aop/application-custom.xml +++ b/liteflow-testcase-springnative/src/test/resources/aop/application-custom.xml @@ -20,6 +20,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/aop/application-global.xml b/liteflow-testcase-springnative/src/test/resources/aop/application-global.xml index 376b0c1ff..7675c3ee7 100644 --- a/liteflow-testcase-springnative/src/test/resources/aop/application-global.xml +++ b/liteflow-testcase-springnative/src/test/resources/aop/application-global.xml @@ -20,6 +20,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/asyncNode/application.xml b/liteflow-testcase-springnative/src/test/resources/asyncNode/application.xml index 92ff44d0c..872baab7a 100644 --- a/liteflow-testcase-springnative/src/test/resources/asyncNode/application.xml +++ b/liteflow-testcase-springnative/src/test/resources/asyncNode/application.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/base/application.xml b/liteflow-testcase-springnative/src/test/resources/base/application.xml index 09fb4a8a2..828258996 100644 --- a/liteflow-testcase-springnative/src/test/resources/base/application.xml +++ b/liteflow-testcase-springnative/src/test/resources/base/application.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/builder/application.xml b/liteflow-testcase-springnative/src/test/resources/builder/application.xml index cccbd4550..e93c94aa9 100644 --- a/liteflow-testcase-springnative/src/test/resources/builder/application.xml +++ b/liteflow-testcase-springnative/src/test/resources/builder/application.xml @@ -12,6 +12,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/cmpRetry/application.xml b/liteflow-testcase-springnative/src/test/resources/cmpRetry/application.xml index 75fd71f42..ac8639b63 100644 --- a/liteflow-testcase-springnative/src/test/resources/cmpRetry/application.xml +++ b/liteflow-testcase-springnative/src/test/resources/cmpRetry/application.xml @@ -20,6 +20,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/component/application.xml b/liteflow-testcase-springnative/src/test/resources/component/application.xml index 4dce697ea..44c503ec8 100644 --- a/liteflow-testcase-springnative/src/test/resources/component/application.xml +++ b/liteflow-testcase-springnative/src/test/resources/component/application.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/config/application-local.xml b/liteflow-testcase-springnative/src/test/resources/config/application-local.xml index 751e16799..cf4d83caf 100644 --- a/liteflow-testcase-springnative/src/test/resources/config/application-local.xml +++ b/liteflow-testcase-springnative/src/test/resources/config/application-local.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/config/local-rule-source-pattern-match.xml b/liteflow-testcase-springnative/src/test/resources/config/local-rule-source-pattern-match.xml index b4d8989f0..4425765a2 100644 --- a/liteflow-testcase-springnative/src/test/resources/config/local-rule-source-pattern-match.xml +++ b/liteflow-testcase-springnative/src/test/resources/config/local-rule-source-pattern-match.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/customNodes/application.xml b/liteflow-testcase-springnative/src/test/resources/customNodes/application.xml index c575cc693..520dc7eb4 100644 --- a/liteflow-testcase-springnative/src/test/resources/customNodes/application.xml +++ b/liteflow-testcase-springnative/src/test/resources/customNodes/application.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/customWhenThreadPool/application.xml b/liteflow-testcase-springnative/src/test/resources/customWhenThreadPool/application.xml index ce09aca97..e8b99d0a2 100644 --- a/liteflow-testcase-springnative/src/test/resources/customWhenThreadPool/application.xml +++ b/liteflow-testcase-springnative/src/test/resources/customWhenThreadPool/application.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/emptyFlow/application.xml b/liteflow-testcase-springnative/src/test/resources/emptyFlow/application.xml index 22ab5c50e..cff8065b9 100644 --- a/liteflow-testcase-springnative/src/test/resources/emptyFlow/application.xml +++ b/liteflow-testcase-springnative/src/test/resources/emptyFlow/application.xml @@ -16,6 +16,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/enable/application-local.xml b/liteflow-testcase-springnative/src/test/resources/enable/application-local.xml index cd2324656..3d7d6c9b6 100644 --- a/liteflow-testcase-springnative/src/test/resources/enable/application-local.xml +++ b/liteflow-testcase-springnative/src/test/resources/enable/application-local.xml @@ -19,6 +19,6 @@ - + diff --git a/liteflow-testcase-springnative/src/test/resources/exception/application.xml b/liteflow-testcase-springnative/src/test/resources/exception/application.xml index 741f6451b..b673ccea5 100644 --- a/liteflow-testcase-springnative/src/test/resources/exception/application.xml +++ b/liteflow-testcase-springnative/src/test/resources/exception/application.xml @@ -19,6 +19,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/flowmeta/application.xml b/liteflow-testcase-springnative/src/test/resources/flowmeta/application.xml index e952c5867..1d9c67d83 100644 --- a/liteflow-testcase-springnative/src/test/resources/flowmeta/application.xml +++ b/liteflow-testcase-springnative/src/test/resources/flowmeta/application.xml @@ -19,6 +19,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/lazy/application.xml b/liteflow-testcase-springnative/src/test/resources/lazy/application.xml index ffc8b01dc..f08888dc3 100644 --- a/liteflow-testcase-springnative/src/test/resources/lazy/application.xml +++ b/liteflow-testcase-springnative/src/test/resources/lazy/application.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/liteflowcomponent/application.xml b/liteflow-testcase-springnative/src/test/resources/liteflowcomponent/application.xml index 2b9ab42dd..1755cf3ac 100644 --- a/liteflow-testcase-springnative/src/test/resources/liteflowcomponent/application.xml +++ b/liteflow-testcase-springnative/src/test/resources/liteflowcomponent/application.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/monitor/application.xml b/liteflow-testcase-springnative/src/test/resources/monitor/application.xml index 4dc968fac..0596e85ba 100644 --- a/liteflow-testcase-springnative/src/test/resources/monitor/application.xml +++ b/liteflow-testcase-springnative/src/test/resources/monitor/application.xml @@ -22,7 +22,7 @@ - + diff --git a/liteflow-testcase-springnative/src/test/resources/multipleType/application.xml b/liteflow-testcase-springnative/src/test/resources/multipleType/application.xml index d5edf439b..b4b1f55c1 100644 --- a/liteflow-testcase-springnative/src/test/resources/multipleType/application.xml +++ b/liteflow-testcase-springnative/src/test/resources/multipleType/application.xml @@ -19,6 +19,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/nodeExecutor/application.xml b/liteflow-testcase-springnative/src/test/resources/nodeExecutor/application.xml index 4f1904159..d41da7482 100644 --- a/liteflow-testcase-springnative/src/test/resources/nodeExecutor/application.xml +++ b/liteflow-testcase-springnative/src/test/resources/nodeExecutor/application.xml @@ -21,6 +21,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/nullParam/application-local.xml b/liteflow-testcase-springnative/src/test/resources/nullParam/application-local.xml index 4683e7c17..e584cdc44 100644 --- a/liteflow-testcase-springnative/src/test/resources/nullParam/application-local.xml +++ b/liteflow-testcase-springnative/src/test/resources/nullParam/application-local.xml @@ -18,6 +18,6 @@ - + diff --git a/liteflow-testcase-springnative/src/test/resources/parsecustom/application.xml b/liteflow-testcase-springnative/src/test/resources/parsecustom/application.xml index 10b5ec593..73f64a898 100644 --- a/liteflow-testcase-springnative/src/test/resources/parsecustom/application.xml +++ b/liteflow-testcase-springnative/src/test/resources/parsecustom/application.xml @@ -15,7 +15,7 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/parser/application-json.xml b/liteflow-testcase-springnative/src/test/resources/parser/application-json.xml index 8025d6cf1..b589af68f 100644 --- a/liteflow-testcase-springnative/src/test/resources/parser/application-json.xml +++ b/liteflow-testcase-springnative/src/test/resources/parser/application-json.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/parser/application-xml.xml b/liteflow-testcase-springnative/src/test/resources/parser/application-xml.xml index f658f6da7..b84296f5d 100644 --- a/liteflow-testcase-springnative/src/test/resources/parser/application-xml.xml +++ b/liteflow-testcase-springnative/src/test/resources/parser/application-xml.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/parser/application-yml.xml b/liteflow-testcase-springnative/src/test/resources/parser/application-yml.xml index 853f95005..7ffffc8c0 100644 --- a/liteflow-testcase-springnative/src/test/resources/parser/application-yml.xml +++ b/liteflow-testcase-springnative/src/test/resources/parser/application-yml.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/preAndFinally/application.xml b/liteflow-testcase-springnative/src/test/resources/preAndFinally/application.xml index 5a7c33062..dfec48b43 100644 --- a/liteflow-testcase-springnative/src/test/resources/preAndFinally/application.xml +++ b/liteflow-testcase-springnative/src/test/resources/preAndFinally/application.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/privateDelivery/application.xml b/liteflow-testcase-springnative/src/test/resources/privateDelivery/application.xml index aeefbfc46..35d842025 100644 --- a/liteflow-testcase-springnative/src/test/resources/privateDelivery/application.xml +++ b/liteflow-testcase-springnative/src/test/resources/privateDelivery/application.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/refreshRule/application.xml b/liteflow-testcase-springnative/src/test/resources/refreshRule/application.xml index 8572a661a..70923f166 100644 --- a/liteflow-testcase-springnative/src/test/resources/refreshRule/application.xml +++ b/liteflow-testcase-springnative/src/test/resources/refreshRule/application.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/reload/application.xml b/liteflow-testcase-springnative/src/test/resources/reload/application.xml index 0f826a7e8..5f7d8832c 100644 --- a/liteflow-testcase-springnative/src/test/resources/reload/application.xml +++ b/liteflow-testcase-springnative/src/test/resources/reload/application.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/subflow/application-json.xml b/liteflow-testcase-springnative/src/test/resources/subflow/application-json.xml index 176c86b42..1322a6b48 100644 --- a/liteflow-testcase-springnative/src/test/resources/subflow/application-json.xml +++ b/liteflow-testcase-springnative/src/test/resources/subflow/application-json.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/subflow/application-subInDifferentConfig1.xml b/liteflow-testcase-springnative/src/test/resources/subflow/application-subInDifferentConfig1.xml index 7ae8f3c5c..429358ce1 100644 --- a/liteflow-testcase-springnative/src/test/resources/subflow/application-subInDifferentConfig1.xml +++ b/liteflow-testcase-springnative/src/test/resources/subflow/application-subInDifferentConfig1.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/subflow/application-xml.xml b/liteflow-testcase-springnative/src/test/resources/subflow/application-xml.xml index 38b2fafa0..fa1fee108 100644 --- a/liteflow-testcase-springnative/src/test/resources/subflow/application-xml.xml +++ b/liteflow-testcase-springnative/src/test/resources/subflow/application-xml.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/subflow/application-yml.xml b/liteflow-testcase-springnative/src/test/resources/subflow/application-yml.xml index 72103c355..95f1b3daa 100644 --- a/liteflow-testcase-springnative/src/test/resources/subflow/application-yml.xml +++ b/liteflow-testcase-springnative/src/test/resources/subflow/application-yml.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/tag/application-json.xml b/liteflow-testcase-springnative/src/test/resources/tag/application-json.xml new file mode 100644 index 000000000..5c5aaaa28 --- /dev/null +++ b/liteflow-testcase-springnative/src/test/resources/tag/application-json.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/tag/application-xml.xml b/liteflow-testcase-springnative/src/test/resources/tag/application-xml.xml new file mode 100644 index 000000000..5c5aaaa28 --- /dev/null +++ b/liteflow-testcase-springnative/src/test/resources/tag/application-xml.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/tag/flow.json b/liteflow-testcase-springnative/src/test/resources/tag/flow.json new file mode 100644 index 000000000..49c902e4a --- /dev/null +++ b/liteflow-testcase-springnative/src/test/resources/tag/flow.json @@ -0,0 +1,31 @@ +{ + "flow": { + "chain": [ + { + "name": "chain1", + "condition": [ + {"type": "then", "value": "a[1],a[2],a[3]"} + ] + }, + { + "name": "chain2", + "condition": [ + {"type": "then", "value": "a[1],a[2],a[3],c[2](d[5]|e[6])"} + ] + }, + { + "name": "chain3", + "condition": [ + {"type": "then", "value": "b1"}, + {"type": "when", "value": "b[1],b[2],b[3]"} + ] + }, + { + "name": "chain4", + "condition": [ + {"type": "then", "value": "f[false],g"} + ] + } + ] + } +} \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/tag/flow.xml b/liteflow-testcase-springnative/src/test/resources/tag/flow.xml new file mode 100644 index 000000000..b7ceb903d --- /dev/null +++ b/liteflow-testcase-springnative/src/test/resources/tag/flow.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/zookeeper/application-json.xml b/liteflow-testcase-springnative/src/test/resources/zookeeper/application-json.xml index 4e152ca6d..225524836 100644 --- a/liteflow-testcase-springnative/src/test/resources/zookeeper/application-json.xml +++ b/liteflow-testcase-springnative/src/test/resources/zookeeper/application-json.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/zookeeper/application-xml.xml b/liteflow-testcase-springnative/src/test/resources/zookeeper/application-xml.xml index ba42bb863..b9f633001 100644 --- a/liteflow-testcase-springnative/src/test/resources/zookeeper/application-xml.xml +++ b/liteflow-testcase-springnative/src/test/resources/zookeeper/application-xml.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/liteflow-testcase-springnative/src/test/resources/zookeeper/application-yml.xml b/liteflow-testcase-springnative/src/test/resources/zookeeper/application-yml.xml index 512e1a433..b51092eaf 100644 --- a/liteflow-testcase-springnative/src/test/resources/zookeeper/application-yml.xml +++ b/liteflow-testcase-springnative/src/test/resources/zookeeper/application-yml.xml @@ -18,6 +18,6 @@ - + \ No newline at end of file