我想为 Apache IoTDB 编写一个测试用例。但是,我在清理测试环境时遇到有关删除文件的错误。
我的代码:
@After
public void tearDown() {
try {
for (String filePath : pathList) {
FileUtils.forceDelete(new File(filePath));
}
} catch (Exception e) {
Assert.fail(e.getMessage());
}
}
文件target\data\data\sequence\...是在我的单元测试中创建的。
我怎么解决这个问题?
