|
@@ -3,6 +3,7 @@ package com.yomahub.liteflow.test.comments;
|
|
|
import cn.hutool.core.collection.ListUtil;
|
|
|
import com.yomahub.liteflow.core.FlowExecutor;
|
|
|
import com.yomahub.liteflow.flow.LiteflowResponse;
|
|
|
+import com.yomahub.liteflow.slot.DefaultContext;
|
|
|
import com.yomahub.liteflow.test.BaseTest;
|
|
|
import org.junit.Assert;
|
|
|
import org.junit.Test;
|
|
@@ -27,10 +28,13 @@ public class LiteflowNodeELSpringbootTest extends BaseTest {
|
|
|
|
|
|
// 测试注释
|
|
|
@Test
|
|
|
- public void testAsyncFlow1() {
|
|
|
+ public void testComments1() {
|
|
|
LiteflowResponse response = flowExecutor.execute2Resp("chain1", "it's a base request");
|
|
|
+ DefaultContext context = response.getFirstContextBean();
|
|
|
+ String str = context.getData("str");
|
|
|
Assert.assertTrue(response.isSuccess());
|
|
|
Assert.assertTrue(ListUtil.toList("a==>b==>c==>b", "a==>b==>b==>c").contains(response.getExecuteStepStr()));
|
|
|
+ Assert.assertEquals("https://liteflow.yomahub.com", str);
|
|
|
}
|
|
|
|
|
|
}
|