mirror of https://gitee.com/dromara/liteFlow
修改单元测试
This commit is contained in:
parent
609907afea
commit
17bdb8e449
|
@ -18,4 +18,4 @@ liteflow.fallback-cmp-enable=false
|
|||
liteflow.global-thread-pool-size=16
|
||||
liteflow.global-thread-pool-queue-size=512
|
||||
liteflow.global-thread-pool-executor-class=com.yomahub.liteflow.thread.LiteFlowDefaultGlobalExecutorBuilder
|
||||
liteflow.enable-node-instance-id=true
|
||||
liteflow.enable-node-instance-id=false
|
|
@ -167,8 +167,7 @@ public class InstanceIdELSpringTest extends BaseTest {
|
|||
|
||||
LiteflowResponse response = flowExecutor.execute2Resp(chainId, "arg");
|
||||
String executeStepStr = response.getExecuteStepStr();
|
||||
Assertions.assertEquals("a==>b==>c==>a", response.getExecuteStepStr());
|
||||
|
||||
Assertions.assertTrue( response.isSuccess());
|
||||
String instancePath = constructInstancePath(executeStepStr, chainId);
|
||||
Assertions.assertEquals(instancePath, response.getExecuteStepStrWithInstanceId());
|
||||
List<String> extractStrings = extractValuesList(instancePath);
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
/**
|
||||
* <p>Title: liteflow</p>
|
||||
* <p>Description: 轻量级的组件式流程框架</p>
|
||||
* @author Bryan.Zhang
|
||||
* @email weenyc31@163.com
|
||||
* @Date 2020/4/1
|
||||
*/
|
||||
package com.yomahub.liteflow.test.sqlroute.cmp;
|
||||
|
||||
import com.yomahub.liteflow.core.NodeSwitchComponent;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component("e")
|
||||
public class ESwitchCmp extends NodeSwitchComponent {
|
||||
|
||||
@Override
|
||||
public String processSwitch() throws Exception {
|
||||
return "c";
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue