Class FileToolsTest

java.lang.Object
ubic.basecode.util.FileToolsTest

public class FileToolsTest extends Object
Author:
keshav, pavlidis
  • Constructor Details

    • FileToolsTest

      public FileToolsTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • tearDown

      public void tearDown() throws Exception
      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

      public void testCopyFile() throws Exception
      Throws:
      Exception
    • 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
    • testGetCompressedFile

      public void testGetCompressedFile() throws Exception
      Throws:
      Exception
    • testGetCompressedFileZip

      public void testGetCompressedFileZip() throws Exception
      Throws:
      Exception
    • testGetExtension

      public void testGetExtension()
    • testGetInputStreamFromPlainOrCompressedFile

      public void testGetInputStreamFromPlainOrCompressedFile() throws Exception
      Throws:
      Exception
    • testGetLines

      public void testGetLines() 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()
    • testListDirectoryFiles

      public void testListDirectoryFiles() throws Exception
      Throws:
      Exception
    • testResourcetoPath

      public void testResourcetoPath() throws Exception
      Throws:
      Exception
    • testTestDir

      public void testTestDir()
    • testTestFileFile

      public void testTestFileFile()
    • testTestFileString

      public void testTestFileString()
    • testTouch

      public void testTouch() throws Exception
      Throws:
      Exception
    • testUnGzipFile

      public void testUnGzipFile() throws Exception
      Throws:
      Exception
    • testUnzipFile

      public void testUnzipFile() throws Exception
      Throws:
      Exception