Browse Source

修改测试用例的注释

bryan31 3 years ago
parent
commit
2fe4615929

+ 4 - 0
liteflow-testcase-springboot/src/test/java/com/yomahub/liteflow/test/cmpRetry/LiteflowRetrySpringbootTest.java

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

+ 1 - 1
liteflow-testcase-springboot/src/test/java/com/yomahub/liteflow/test/emptyflow/EmptyFlowTest.java

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

+ 1 - 1
liteflow-testcase-springboot/src/test/java/com/yomahub/liteflow/test/liteflowcomponent/LiteflowComponentSpringbootTest.java

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

+ 1 - 1
liteflow-testcase-springboot/src/test/java/com/yomahub/liteflow/test/multipleType/LiteflowMultipleTypeSpringbootTest.java

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

+ 1 - 1
liteflow-testcase-springboot/src/test/java/com/yomahub/liteflow/test/reload/ReloadSpringbootTest.java

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