fix(测试跟踪): Xmind模版下载修改

This commit is contained in:
fit2-zhao 2020-09-17 17:06:18 +08:00
parent 05f43a0f7f
commit 8a447c2494

View File

@ -335,7 +335,11 @@ public class TestCaseService {
// 读取filename
String filePath = ClassLoader.getSystemResource("template/testcase.xmind").getPath();
LogUtil.info("模版文件路径:"+filePath);
try (BufferedInputStream bis = new BufferedInputStream(new FileInputStream(new File(filePath)));) {
File file = new File(filePath);
if(file == null || !file.exists()){
LogUtil.info("模版模版下载失败:"+filePath);
}
try (BufferedInputStream bis = new BufferedInputStream(new FileInputStream(file));) {
int i = bis.read(buff);
while (i != -1) {
outputStream.write(buff, 0, buff.length);