bug #I49EHH setIsEnd设计的不合理性

This commit is contained in:
bryan31
2021-09-20 23:05:10 +08:00
parent a052ad50ff
commit 6e3f8ba06a
2 changed files with 10 additions and 7 deletions

View File

@@ -63,19 +63,19 @@ public class FlowExecutorTest extends BaseTest {
}
//isEnd方法的功能点测试
@Test(expected = ChainEndException.class)
@Test
public void testIsEnd() throws Exception {
LiteflowResponse<DefaultSlot> response = flowExecutor.execute2Resp("chain4", 10);
Assert.assertFalse(response.isSuccess());
ReflectionUtils.rethrowException(response.getCause());
Assert.assertTrue(response.isSuccess());
Assert.assertEquals("d",response.getSlot().printStep());
}
//setIsEnd方法的功能点测试
@Test(expected = ChainEndException.class)
@Test
public void testSetIsEnd() throws Exception {
LiteflowResponse<DefaultSlot> response = flowExecutor.execute2Resp("chain5", 10);
Assert.assertFalse(response.isSuccess());
ReflectionUtils.rethrowException(response.getCause());
Assert.assertTrue(response.isSuccess());
Assert.assertEquals("e",response.getSlot().printStep());
}
//条件组件的功能点测试