com.silverpeas.util
Class FileUtilTest

java.lang.Object
  extended by com.silverpeas.util.FileUtilTest

public class FileUtilTest
extends Object

Author:
ehugonnet

Constructor Summary
FileUtilTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testCheckPathNotRelative()
           
 void testCheckPathNotRelativeError1()
           
 void testCheckPathNotRelativeError2()
           
 void testCheckPathNotRelativeError3()
           
 void testCheckPathNotRelativeError4()
           
 void testConvertFilePath()
           
 void testDeleteEmptyDir()
           
 void testGetAttachmentContext()
          Test of getAttachmentContext method, of class FileUtil.
 void testGetFilename()
           
 void testGetMimeType()
          Test of getMimeType method, of class FileUtil.
 void testIsArchive()
           
 void testLoadBundle()
          Test of loadBundle method, of class FileUtil.
 void testMoveAllFilesAtRootFolder()
           
 void testMoveAllFilesAtRootFolderThatDoesNotExist()
           
 void testMoveAllFilesAtRootFolderWhichInstanceIsNull()
           
 void testValidateFileNameKo()
           
 void testValidateFileNameOk()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtilTest

public FileUtilTest()
Method Detail

setUp

public void setUp()
           throws IOException
Throws:
IOException

tearDown

public void tearDown()

testGetFilename

public void testGetFilename()

testGetMimeType

public void testGetMimeType()
Test of getMimeType method, of class FileUtil.


testGetAttachmentContext

public void testGetAttachmentContext()
Test of getAttachmentContext method, of class FileUtil.


testLoadBundle

public void testLoadBundle()
Test of loadBundle method, of class FileUtil.


testIsArchive

public void testIsArchive()

testConvertFilePath

public void testConvertFilePath()

testCheckPathNotRelative

public void testCheckPathNotRelative()
                              throws RelativeFileAccessException
Throws:
RelativeFileAccessException

testCheckPathNotRelativeError1

public void testCheckPathNotRelativeError1()
                                    throws RelativeFileAccessException
Throws:
RelativeFileAccessException

testCheckPathNotRelativeError2

public void testCheckPathNotRelativeError2()
                                    throws RelativeFileAccessException
Throws:
RelativeFileAccessException

testCheckPathNotRelativeError3

public void testCheckPathNotRelativeError3()
                                    throws RelativeFileAccessException
Throws:
RelativeFileAccessException

testCheckPathNotRelativeError4

public void testCheckPathNotRelativeError4()
                                    throws RelativeFileAccessException
Throws:
RelativeFileAccessException

testDeleteEmptyDir

public void testDeleteEmptyDir()
                        throws IOException
Throws:
IOException

testMoveAllFilesAtRootFolder

public void testMoveAllFilesAtRootFolder()
                                  throws IOException
Throws:
IOException

testMoveAllFilesAtRootFolderThatDoesNotExist

public void testMoveAllFilesAtRootFolderThatDoesNotExist()
                                                  throws IOException
Throws:
IOException

testMoveAllFilesAtRootFolderWhichInstanceIsNull

public void testMoveAllFilesAtRootFolderWhichInstanceIsNull()
                                                     throws IOException
Throws:
IOException

testValidateFileNameOk

public void testValidateFileNameOk()
                            throws Exception
Throws:
Exception

testValidateFileNameKo

public void testValidateFileNameKo()
                            throws Exception
Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.