added port scanner support

This commit is contained in:
jomu
2014-07-10 10:02:42 +00:00
parent d19fe07b6f
commit dc1a947ad8
20 changed files with 365 additions and 28 deletions

View File

@ -6,10 +6,13 @@ package de.muehlencord.shared.util.file;
import static de.muehlencord.shared.util.file.FileUtil.getFilesFromDirecotry;
import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.Iterator;
import java.util.List;
import org.junit.Ignore;
import org.junit.Test;
/**
@ -24,6 +27,7 @@ public class FileUtilTest {
* @throws URISyntaxException if the testfile specification is wrong
*/
@Test
@Ignore
public void testGetFilesFromDirecotry() throws FileHandlingException, URISyntaxException {
System.out.println("testGetFilesFromDirectory");
@ -35,7 +39,16 @@ public class FileUtilTest {
while (it.hasNext()) {
System.out.println(it.next());
}
}
@Test
public void testMd5Sum() throws IOException, URISyntaxException {
System.out.println("testGetFilesFromDirectory");
URL url = getClass().getResource("testfile.txt");
File testFile = new File(url.getFile());
String fileName = testFile.toString();
fileName = "h:/temp/01750229371_DVD001.iso";
System.out.println (FileUtil.md5Sum(fileName));
}
}