修改测试用例

This commit is contained in:
everywhere.z 2022-07-12 11:53:54 +08:00
parent 0108b2d128
commit dc3226cd73
4 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,6 @@
package com.yomahub.liteflow.test.note;
import cn.hutool.core.collection.ListUtil;
import com.yomahub.liteflow.core.FlowExecutor;
import com.yomahub.liteflow.flow.LiteflowResponse;
import com.yomahub.liteflow.test.BaseTest;
@ -29,6 +30,6 @@ public class LiteflowNodeELSpringbootTest extends BaseTest {
public void testAsyncFlow1() {
LiteflowResponse response = flowExecutor.execute2Resp("chain1", "it's a base request");
Assert.assertTrue(response.isSuccess());
Assert.assertEquals("a==>b==>c==>b",response.getExecuteStepStr());
Assert.assertTrue(ListUtil.toList("a==>b==>c==>b","a==>b==>b==>c").contains(response.getExecuteStepStr()));
}
}

View File

@ -1,5 +1,6 @@
package com.yomahub.liteflow.test.note;
import cn.hutool.core.collection.ListUtil;
import com.yomahub.liteflow.core.FlowExecutor;
import com.yomahub.liteflow.core.FlowExecutorHolder;
import com.yomahub.liteflow.flow.LiteflowResponse;
@ -28,6 +29,6 @@ public class LiteflowNodeTest extends BaseTest {
public void testAsyncFlow1() {
LiteflowResponse response = flowExecutor.execute2Resp("chain1", "it's a base request");
Assert.assertTrue(response.isSuccess());
Assert.assertEquals("a==>b==>c==>b",response.getExecuteStepStr());
Assert.assertTrue(ListUtil.toList("a==>b==>c==>b","a==>b==>b==>c").contains(response.getExecuteStepStr()));
}
}

View File

@ -1,5 +1,6 @@
package com.yomahub.liteflow.test.note;
import cn.hutool.core.collection.ListUtil;
import com.yomahub.liteflow.core.FlowExecutor;
import com.yomahub.liteflow.flow.LiteflowResponse;
import com.yomahub.liteflow.test.BaseTest;
@ -29,6 +30,6 @@ public class LiteflowNodeELSpringbootTest extends BaseTest {
public void testAsyncFlow1() {
LiteflowResponse response = flowExecutor.execute2Resp("chain1", "it's a base request");
Assert.assertTrue(response.isSuccess());
Assert.assertEquals("a==>b==>c==>b",response.getExecuteStepStr());
Assert.assertTrue(ListUtil.toList("a==>b==>c==>b","a==>b==>b==>c").contains(response.getExecuteStepStr()));
}
}

View File

@ -1,5 +1,6 @@
package com.yomahub.liteflow.test.note;
import cn.hutool.core.collection.ListUtil;
import com.yomahub.liteflow.core.FlowExecutor;
import com.yomahub.liteflow.flow.LiteflowResponse;
import com.yomahub.liteflow.test.BaseTest;
@ -23,6 +24,6 @@ public class LiteflowNodeELSpringbootTest extends BaseTest {
public void testAsyncFlow1() {
LiteflowResponse response = flowExecutor.execute2Resp("chain1", "it's a base request");
Assert.assertTrue(response.isSuccess());
Assert.assertEquals("a==>b==>c==>b",response.getExecuteStepStr());
Assert.assertTrue(ListUtil.toList("a==>b==>c==>b","a==>b==>b==>c").contains(response.getExecuteStepStr()));
}
}