refactor(测试跟踪): 重命名Util

This commit is contained in:
fit2-zhao 2020-10-20 17:45:45 +08:00
parent fd0ee661a5
commit fa95095110
2 changed files with 6 additions and 6 deletions

View File

@ -13,7 +13,7 @@ import io.metersphere.track.service.TestCaseService;
import io.metersphere.xmind.parser.XmindParser; import io.metersphere.xmind.parser.XmindParser;
import io.metersphere.xmind.parser.pojo.Attached; import io.metersphere.xmind.parser.pojo.Attached;
import io.metersphere.xmind.parser.pojo.JsonRootBean; import io.metersphere.xmind.parser.pojo.JsonRootBean;
import io.metersphere.xmind.utils.ProcMessage; import io.metersphere.xmind.utils.DetailUtil;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
@ -34,7 +34,7 @@ public class XmindCaseParser {
/** /**
* 过程校验记录 * 过程校验记录
*/ */
private ProcMessage process; private DetailUtil process;
/** /**
* 已存在用例名称 * 已存在用例名称
*/ */
@ -59,7 +59,7 @@ public class XmindCaseParser {
this.testCaseNames = testCaseNames; this.testCaseNames = testCaseNames;
testCases = new LinkedList<>(); testCases = new LinkedList<>();
compartDatas = new ArrayList<>(); compartDatas = new ArrayList<>();
process = new ProcMessage(); process = new DetailUtil();
nodePaths = new ArrayList<>(); nodePaths = new ArrayList<>();
} }

View File

@ -15,11 +15,11 @@ import java.util.Map;
@Getter @Getter
@Setter @Setter
public class ProcMessage implements Serializable { public class DetailUtil implements Serializable {
private Map<String, StringBuilder> process; private Map<String, StringBuilder> process;
public ProcMessage() { public DetailUtil() {
process = new LinkedHashMap<>(); process = new LinkedHashMap<>();
} }
@ -27,7 +27,7 @@ public class ProcMessage implements Serializable {
if (process.containsKey(type)) { if (process.containsKey(type)) {
process.get(type).append(msContent + ""); process.get(type).append(msContent + "");
} else { } else {
process.put(type, new StringBuilder(msContent+"")); process.put(type, new StringBuilder(msContent + ""));
} }
} }