|
@@ -5,6 +5,7 @@ import cn.hutool.core.io.resource.ClassPathResource;
|
|
|
import cn.hutool.core.util.CharsetUtil;
|
|
|
import com.yomahub.liteflow.core.FlowExecutor;
|
|
|
import com.yomahub.liteflow.flow.LiteflowResponse;
|
|
|
+import com.yomahub.liteflow.test.BaseTest;
|
|
|
import org.junit.Assert;
|
|
|
import org.junit.Test;
|
|
|
import org.junit.runner.RunWith;
|
|
@@ -22,7 +23,7 @@ import java.io.File;
|
|
|
@SpringBootTest(classes = MonitorFileELDeclMultiSpringbootTest.class)
|
|
|
@EnableAutoConfiguration
|
|
|
@ComponentScan({"com.yomahub.liteflow.test.monitorFile.cmp"})
|
|
|
-public class MonitorFileELDeclMultiSpringbootTest {
|
|
|
+public class MonitorFileELDeclMultiSpringbootTest extends BaseTest {
|
|
|
@Resource
|
|
|
private FlowExecutor flowExecutor;
|
|
|
|
|
@@ -33,7 +34,7 @@ public class MonitorFileELDeclMultiSpringbootTest {
|
|
|
String newContent = content.replace("THEN(a, b, c);", "THEN(a, c, b);");
|
|
|
FileUtil.writeString(newContent,new File(absolutePath), CharsetUtil.CHARSET_UTF_8);
|
|
|
|
|
|
- Thread.sleep(1000);
|
|
|
+ Thread.sleep(1500);
|
|
|
|
|
|
LiteflowResponse response = flowExecutor.execute2Resp("chain1", "arg");
|
|
|
Assert.assertEquals("a==>c==>b", response.getExecuteStepStr());
|