Package ubic.basecode.util
Class FileToolsTest
- java.lang.Object
-
- ubic.basecode.util.FileToolsTest
-
public class FileToolsTest extends Object
- Author:
- keshav, pavlidis
-
-
Constructor Summary
Constructors Constructor Description FileToolsTest()
-
Method Summary
-
-
-
Method Detail
-
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()
-
testCopyFileFailOnDirectoryInput
public void testCopyFileFailOnDirectoryInput() throws Exception
- Throws:
Exception
-
testCopyFileFailOnDirectoryOutput
public void testCopyFileFailOnDirectoryOutput() throws Exception
- Throws:
Exception
-
testDeleteDir
public void testDeleteDir() throws Exception
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
public void testDeleteFilesAndDir() throws Exception
Tests deleting files in a directory tree, then the directories.- Throws:
Exception
-
testGetExtension
public void testGetExtension()
-
testGetInputStreamFromPlainOrCompressedFile
public void testGetInputStreamFromPlainOrCompressedFile() throws Exception
- Throws:
Exception
-
testgetStringListFromFile
public void testgetStringListFromFile() throws Exception
- 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()
-
testTestDir
public void testTestDir()
-
testTestFileFile
public void testTestFileFile()
-
testTestFileString
public void testTestFileString()
-
-