mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-06-12 19:21:05 +08:00
修改issue #I5CTFZ 所造成的测试用例的不过的问题
This commit is contained in:
@@ -83,9 +83,6 @@ public class LiteFlowChainBuilder {
|
||||
if (StrUtil.isBlank(this.chain.getChainName())) {
|
||||
errorList.add("name is blank");
|
||||
}
|
||||
if (CollUtil.isEmpty(this.chain.getConditionList())) {
|
||||
errorList.add("conditionList is empty");
|
||||
}
|
||||
if (CollUtil.isNotEmpty(errorList)) {
|
||||
throw new RuntimeException(CollUtil.join(errorList, ",", "[", "]"));
|
||||
}
|
||||
|
||||
@@ -146,15 +146,9 @@ public class LiteFlowNodeBuilder {
|
||||
if (StrUtil.isBlank(this.node.getId())) {
|
||||
errorList.add("id is blank");
|
||||
}
|
||||
if (StrUtil.isBlank(this.node.getName())) {
|
||||
errorList.add("name is blank");
|
||||
}
|
||||
if (Objects.isNull(this.node.getType())) {
|
||||
errorList.add("type is null");
|
||||
}
|
||||
if (StrUtil.isBlank(this.node.getClazz())) {
|
||||
errorList.add("clazz is blank");
|
||||
}
|
||||
if (CollUtil.isNotEmpty(errorList)) {
|
||||
throw new NodeBuildException(CollUtil.join(errorList, ",", "[", "]"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user