mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
修改测试用例的注释
This commit is contained in:
@@ -32,6 +32,7 @@ public class LiteflowRetrySpringbootTest extends BaseTest {
|
||||
@Resource
|
||||
private FlowExecutor flowExecutor;
|
||||
|
||||
//全局重试配置测试
|
||||
@Test
|
||||
public void testRetry1() {
|
||||
LiteflowResponse<DefaultSlot> response = flowExecutor.execute2Resp("chain1", "arg");
|
||||
@@ -39,6 +40,7 @@ public class LiteflowRetrySpringbootTest extends BaseTest {
|
||||
Assert.assertEquals("a==>b==>b==>b", response.getSlot().printStep());
|
||||
}
|
||||
|
||||
//单个组件重试配置测试
|
||||
@Test
|
||||
public void testRetry2() {
|
||||
LiteflowResponse<DefaultSlot> response = flowExecutor.execute2Resp("chain2", "arg");
|
||||
@@ -46,12 +48,14 @@ public class LiteflowRetrySpringbootTest extends BaseTest {
|
||||
Assert.assertEquals("c==>c==>c==>c==>c==>c", response.getSlot().printStep());
|
||||
}
|
||||
|
||||
//单个组件指定异常,但抛出的并不是指定异常的场景测试
|
||||
@Test
|
||||
public void testRetry3() {
|
||||
LiteflowResponse<DefaultSlot> response = flowExecutor.execute2Resp("chain3", "arg");
|
||||
Assert.assertFalse(response.isSuccess());
|
||||
}
|
||||
|
||||
//单个组件指定异常重试,抛出的是指定异常或者
|
||||
@Test
|
||||
public void testRetry4() {
|
||||
LiteflowResponse<DefaultSlot> response = flowExecutor.execute2Resp("chain4", "arg");
|
||||
|
||||
@@ -31,7 +31,7 @@ public class EmptyFlowTest extends BaseTest {
|
||||
@Resource
|
||||
private FlowExecutor flowExecutor;
|
||||
|
||||
//测试自定义AOP,串行场景
|
||||
//测试空flow的情况下,liteflow是否能正常启动
|
||||
@Test
|
||||
public void testEmptyFlow() {
|
||||
//不做任何事,为的是能正常启动
|
||||
|
||||
@@ -16,7 +16,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
|
||||
/**
|
||||
* 测试springboot下的enable参数
|
||||
* 测试@LiteflowComponent标注
|
||||
* @author Bryan.Zhang
|
||||
* @since 2.5.10
|
||||
*/
|
||||
|
||||
@@ -16,7 +16,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
|
||||
/**
|
||||
* 测试springboot下的enable参数
|
||||
* 测试springboot下混合格式规则的场景
|
||||
* @author Bryan.Zhang
|
||||
* @since 2.5.10
|
||||
*/
|
||||
|
||||
@@ -25,7 +25,7 @@ import java.util.concurrent.Executors;
|
||||
import java.util.concurrent.Future;
|
||||
|
||||
/**
|
||||
* springboot环境下slot扩容测试
|
||||
* springboot环境下重新加载规则测试
|
||||
* @author Bryan.Zhang
|
||||
* @since 2.5.0
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user