修改测试用例的注释

This commit is contained in:
bryan31
2021-09-28 14:41:15 +08:00
parent 1a02b10fe2
commit 2fe4615929
5 changed files with 8 additions and 4 deletions

View File

@@ -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");

View File

@@ -31,7 +31,7 @@ public class EmptyFlowTest extends BaseTest {
@Resource
private FlowExecutor flowExecutor;
//测试自定义AOP串行场景
//测试空flow的情况下liteflow是否能正常启动
@Test
public void testEmptyFlow() {
//不做任何事,为的是能正常启动

View File

@@ -16,7 +16,7 @@ import org.springframework.test.context.junit4.SpringRunner;
/**
* 测试springboot下的enable参数
* 测试@LiteflowComponent标注
* @author Bryan.Zhang
* @since 2.5.10
*/

View File

@@ -16,7 +16,7 @@ import org.springframework.test.context.junit4.SpringRunner;
/**
* 测试springboot下的enable参数
* 测试springboot下混合格式规则的场景
* @author Bryan.Zhang
* @since 2.5.10
*/

View File

@@ -25,7 +25,7 @@ import java.util.concurrent.Executors;
import java.util.concurrent.Future;
/**
* springboot环境下slot扩容测试
* springboot环境下重新加载规则测试
* @author Bryan.Zhang
* @since 2.5.0
*/