Class FileToolsTest


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

      • FileToolsTest

        public FileToolsTest()
    • 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
      • 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
      • 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()