提交 08f578c7 编写于 作者: E Eszes Dávid 提交者: Stephan Ewen

[streaming] remove java.nio from TestDataUtilTest

上级 07586af4
......@@ -19,7 +19,6 @@ import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
......
......@@ -22,9 +22,6 @@ import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import org.junit.Test;
......@@ -34,8 +31,6 @@ public class TestDataUtilTest {
// public void testDownload() throws FileNotFoundException, IOException {
// String fileToDownload = "hamlet.txt";
// String expectedFile = "hamletTestExpectation.txt";
//
// deleteFile(TestDataUtil.testDataDir + fileToDownload);
//
// TestDataUtil.download(fileToDownload);
//
......@@ -43,12 +38,6 @@ public class TestDataUtilTest {
// + fileToDownload));
// }
public void deleteFile(String fileLocation) throws IOException{
Path path = Paths.get(fileLocation);
if(Files.exists(path))
Files.delete(path);
}
public boolean compareFile(String file1, String file2) throws FileNotFoundException,
IOException {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册