mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
补充测试用例
This commit is contained in:
@@ -15,7 +15,7 @@ import javax.annotation.Resource;
|
||||
|
||||
|
||||
/**
|
||||
* 测试springboot下的节点执行器
|
||||
* 测试非spring下的节点执行器
|
||||
* @author Bryan.Zhang
|
||||
* @since 2.5.10
|
||||
*/
|
||||
|
||||
@@ -12,7 +12,7 @@ import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* springboot环境下参数单元测试
|
||||
* 非spring环境下参数单元测试
|
||||
* @author zendwang
|
||||
* @since 2.5.0
|
||||
*/
|
||||
|
||||
@@ -11,7 +11,7 @@ import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* 测试springboot下混合格式规则的场景
|
||||
* 测试非spring下混合格式规则的场景
|
||||
* @author Bryan.Zhang
|
||||
* @since 2.5.10
|
||||
*/
|
||||
|
||||
@@ -26,7 +26,7 @@ public class CustomParserJsonTest extends BaseTest {
|
||||
flowExecutor = FlowExecutorHolder.loadInstance(config);
|
||||
}
|
||||
|
||||
//测试springboot场景的自定义json parser
|
||||
//测试非spring场景的自定义json parser
|
||||
@Test
|
||||
public void testJsonCustomParser() {
|
||||
LiteflowResponse<DefaultSlot> response = flowExecutor.execute2Resp("chain1", "args");
|
||||
|
||||
@@ -26,7 +26,7 @@ public class CustomParserXmlTest extends BaseTest {
|
||||
flowExecutor = FlowExecutorHolder.loadInstance(config);
|
||||
}
|
||||
|
||||
//测试springboot场景的自定义json parser
|
||||
//测试非spring场景的自定义json parser
|
||||
@Test
|
||||
public void testXmlCustomParser() {
|
||||
LiteflowResponse<DefaultSlot> response = flowExecutor.execute2Resp("chain1", "args");
|
||||
|
||||
@@ -4,7 +4,7 @@ import com.yomahub.liteflow.parser.ClassXmlFlowParser;
|
||||
|
||||
/**
|
||||
* 非spring环境的自定义xml parser单元测试
|
||||
* 主要测试自定义配置源类是否能引入springboot中的其他依赖
|
||||
* 主要测试自定义配置源类是否能引入非spring中的其他依赖
|
||||
* @author bryan.zhang
|
||||
* @since 2.5.7
|
||||
*/
|
||||
|
||||
@@ -26,7 +26,7 @@ public class XmlParserTest extends BaseTest {
|
||||
flowExecutor = FlowExecutorHolder.loadInstance(config);
|
||||
}
|
||||
|
||||
//测试无springboot场景的xml parser
|
||||
//测试无spring场景的xml parser
|
||||
@Test
|
||||
public void testXmlParser() {
|
||||
LiteflowResponse<DefaultSlot> response = flowExecutor.execute2Resp("chain1", "arg");
|
||||
|
||||
@@ -11,7 +11,7 @@ import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* springboot下的yml parser测试用例
|
||||
* 非spring下的yml parser测试用例
|
||||
* @author Bryan.Zhang
|
||||
* @since 2.5.0
|
||||
*/
|
||||
@@ -26,7 +26,7 @@ public class YmlParserTest extends BaseTest {
|
||||
flowExecutor = FlowExecutorHolder.loadInstance(config);
|
||||
}
|
||||
|
||||
//测试无springboot场景的yml parser
|
||||
//测试无spring场景的yml parser
|
||||
@Test
|
||||
public void testYmlParser() {
|
||||
LiteflowResponse<DefaultSlot> response = flowExecutor.execute2Resp("chain2", "arg");
|
||||
|
||||
@@ -20,7 +20,7 @@ import java.util.concurrent.Executors;
|
||||
import java.util.concurrent.Future;
|
||||
|
||||
/**
|
||||
* springboot环境下slot扩容测试
|
||||
* 非spring环境下slot扩容测试
|
||||
* @author Bryan.Zhang
|
||||
* @since 2.5.0
|
||||
*/
|
||||
|
||||
@@ -19,7 +19,7 @@ import java.nio.charset.Charset;
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
|
||||
/**
|
||||
* springboot环境下的zk配置源功能测试
|
||||
* 非spring环境下的zk配置源功能测试
|
||||
* ZK节点存储数据的格式为json文件
|
||||
* @author zendwang
|
||||
* @since 2.5.0
|
||||
|
||||
@@ -19,7 +19,7 @@ import java.nio.charset.Charset;
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
|
||||
/**
|
||||
* springboot环境下的zk配置源功能测试
|
||||
* 非spring环境下的zk配置源功能测试
|
||||
* ZK节点存储数据的格式为xml文件
|
||||
* @author zendwang
|
||||
* @since 2.5.0
|
||||
|
||||
@@ -19,7 +19,7 @@ import java.nio.charset.Charset;
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
|
||||
/**
|
||||
* springboot环境下的zk配置源功能测试
|
||||
* 非spring环境下的zk配置源功能测试
|
||||
* ZK节点存储数据的格式为yml文件
|
||||
* @author zendwang
|
||||
* @since 2.5.0
|
||||
|
||||
Reference in New Issue
Block a user