Package ubic.basecode.util
Class FileToolsTest
java.lang.Object
ubic.basecode.util.FileToolsTest
- Author:
- keshav, pavlidis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidtearDown()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidTests trying to delete a directory without first deleting the files.voidTests deleting files in a directory tree, then the directories.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
FileToolsTest
public FileToolsTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testAddDataExtension
public void testAddDataExtension() -
testAddImageExtension
public void testAddImageExtension() -
testChangeExtension
public void testChangeExtension() -
testCheckPathIsReadableFile
public void testCheckPathIsReadableFile() -
testCheckPathIsReadableFileNot
public void testCheckPathIsReadableFileNot() -
testCleanFileName
public void testCleanFileName() -
testCleanFileNameErr
public void testCleanFileNameErr() -
testCopyFile
- Throws:
Exception
-
testCopyFileFailOnDirectoryInput
- Throws:
Exception
-
testCopyFileFailOnDirectoryOutput
- Throws:
Exception
-
testDeleteDir
Tests trying to delete a directory without first deleting the files. The expected result is the directory (and subdirectories) should not be deleted.- Throws:
Exception
-
testDeleteFilesAndDir
Tests deleting files in a directory tree, then the directories.- Throws:
Exception
-
testGetCompressedFile
- Throws:
Exception
-
testGetCompressedFileZip
- Throws:
Exception
-
testGetExtension
public void testGetExtension() -
testGetInputStreamFromPlainOrCompressedFile
- Throws:
Exception
-
testGetLines
- Throws:
Exception
-
testgetStringListFromFile
- Throws:
Exception
-
testGetWithoutExtension
public void testGetWithoutExtension() -
testGetWithoutExtensionB
public void testGetWithoutExtensionB() -
testGetWithoutExtensionC
public void testGetWithoutExtensionC() -
testHasImageExtension
public void testHasImageExtension() -
testHasXMLExtension
public void testHasXMLExtension() -
testIsGZipped
public void testIsGZipped() -
testIsZipped
public void testIsZipped() -
testListDirectoryFiles
- Throws:
Exception
-
testResourcetoPath
- Throws:
Exception
-
testTestDir
public void testTestDir() -
testTestFileFile
public void testTestFileFile() -
testTestFileString
public void testTestFileString() -
testTouch
- Throws:
Exception
-
testUnGzipFile
- Throws:
Exception
-
testUnzipFile
- Throws:
Exception
-