diff --git a/util/src/test/java/de/muehlencord/shared/util/file/FileUtilTest.java b/util/src/test/java/de/muehlencord/shared/util/file/FileUtilTest.java index 2a6e4fd..8735587 100644 --- a/util/src/test/java/de/muehlencord/shared/util/file/FileUtilTest.java +++ b/util/src/test/java/de/muehlencord/shared/util/file/FileUtilTest.java @@ -1,51 +1,52 @@ -/* - * To change this template, choose Tools | Templates - * and open the template in the editor. - */ -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.URISyntaxException; -import java.net.URL; -import java.util.Iterator; -import java.util.List; -import org.junit.Ignore; -import org.junit.Test; - -/** - * - * @author jomu - */ -public class FileUtilTest { - - /** - * tests the function getFilesFromDirectory - * @throws FileHandlingException if the files could not be listed - * @throws URISyntaxException if the testfile specification is wrong - */ - @Test - @Ignore - public void testGetFilesFromDirecotry() throws FileHandlingException, URISyntaxException { - System.out.println("testGetFilesFromDirectory"); - - URL url = getClass().getResource("testfile.txt"); - File testFile = new File(url.getFile()); - - List fileList = getFilesFromDirecotry(testFile.getParent(), ".*.java"); - Iterator it = fileList.iterator(); - 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(); - System.out.println (FileUtil.md5Sum(fileName)); - } -} +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ +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.URISyntaxException; +import java.net.URL; +import java.util.Iterator; +import java.util.List; +import static org.junit.Assert.assertEquals; +import org.junit.Ignore; +import org.junit.Test; + +/** + * + * @author jomu + */ +public class FileUtilTest { + + /** + * tests the function getFilesFromDirectory + * @throws FileHandlingException if the files could not be listed + * @throws URISyntaxException if the testfile specification is wrong + */ + @Test + @Ignore + public void testGetFilesFromDirecotry() throws FileHandlingException, URISyntaxException { + System.out.println("testGetFilesFromDirectory"); + + URL url = getClass().getResource("testfile.txt"); + File testFile = new File(url.getFile()); + + List fileList = getFilesFromDirecotry(testFile.getParent(), ".*.java"); + Iterator it = fileList.iterator(); + 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(); + System.out.println (FileUtil.md5Sum(fileName)); + } +}