修改单元测试

This commit is contained in:
jay li 2024-12-31 21:51:08 +08:00
parent 609907afea
commit 17bdb8e449
3 changed files with 23 additions and 3 deletions

View File

@ -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

View File

@ -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);

View File

@ -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";
}
}