org.silverpeas.process.io.file
Class HandledFileTest

java.lang.Object
  extended by org.silverpeas.process.io.file.AbstractHandledFileTest
      extended by org.silverpeas.process.io.file.HandledFileTest

public class HandledFileTest
extends AbstractHandledFileTest

Author:
Yohann Chastagnier

Field Summary
 
Fields inherited from class org.silverpeas.process.io.file.AbstractHandledFileTest
BASE_PATH_TEST, componentInstanceId, currentSession, fileHandler, otherFile, realComponentPath, realRootPath, sessionComponentPath, sessionHandledPath, sessionRootPath
 
Constructor Summary
HandledFileTest()
           
 
Method Summary
 void testCleanDirectoryFromCommonTestStructure()
           
 void testContentEquals()
           
 void testCopyFile()
           
 void testDeleteFileExistingInSessionAndRealPaths()
           
 void testDeleteFileFromCommonTestStructure()
           
 void testDeleteFromRealPathOnly()
           
 void testDeleteFromSessionPathOnly()
           
 void testGetHandledFileAndGetParentHandledFile()
           
 void testIsFileNewer()
           
 void testIsFileOlder()
           
 void testListFiles()
           
 void testListFilesWithFilters()
           
 void testMoveFile()
           
 void testOpenInputStream()
           
 void testOpenOutputStream()
           
 void testReadFileToStringFromFileExistingInSessionAndRealPath()
           
 void testReadFileToStringFromFileExistingInSessionAndRealPathWithSpecificFileEncoding()
           
 void testReadLinesFromFileExistingInSessionAndRealPath()
           
 void testReadLinesFromFileExistingInSessionAndRealPathWithSpecificFileEncoding()
           
 void testSizeOf()
           
 void testTouch()
           
 void testWaitForForWithFailFileCreationInTime()
           
 void testWaitForWithSuccessFileCreationInTime()
           
 void testWrite()
           
 void testWriteByteArrayToFile()
           
 void testWriteLines()
           
 void testWriteStringToFile()
           
 
Methods inherited from class org.silverpeas.process.io.file.AbstractHandledFileTest
afterTest, assertFileNames, assertSizes, beforeTest, buildCommonPathStructure, createSessionTest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandledFileTest

public HandledFileTest()
Method Detail

testGetHandledFileAndGetParentHandledFile

public void testGetHandledFileAndGetParentHandledFile()
                                               throws Exception
Throws:
Exception

testOpenOutputStream

public void testOpenOutputStream()
                          throws Exception
Throws:
Exception

testOpenInputStream

public void testOpenInputStream()
                         throws Exception
Throws:
Exception

testTouch

public void testTouch()
               throws Exception
Throws:
Exception

testListFiles

public void testListFiles()
                   throws Exception
Throws:
Exception

testListFilesWithFilters

public void testListFilesWithFilters()
                              throws Exception
Throws:
Exception

testContentEquals

public void testContentEquals()
                       throws Exception
Throws:
Exception

testCopyFile

public void testCopyFile()
                  throws Exception
Throws:
Exception

testDeleteFromRealPathOnly

public void testDeleteFromRealPathOnly()
                                throws Exception
Throws:
Exception

testDeleteFromSessionPathOnly

public void testDeleteFromSessionPathOnly()
                                   throws Exception
Throws:
Exception

testDeleteFileExistingInSessionAndRealPaths

public void testDeleteFileExistingInSessionAndRealPaths()
                                                 throws Exception
Throws:
Exception

testDeleteFileFromCommonTestStructure

public void testDeleteFileFromCommonTestStructure()
                                           throws Exception
Throws:
Exception

testCleanDirectoryFromCommonTestStructure

public void testCleanDirectoryFromCommonTestStructure()
                                               throws Exception
Throws:
Exception

testWaitForWithSuccessFileCreationInTime

public void testWaitForWithSuccessFileCreationInTime()
                                              throws Exception
Throws:
Exception

testWaitForForWithFailFileCreationInTime

public void testWaitForForWithFailFileCreationInTime()
                                              throws Exception
Throws:
Exception

testMoveFile

public void testMoveFile()
                  throws Exception
Throws:
Exception

testReadFileToStringFromFileExistingInSessionAndRealPath

public void testReadFileToStringFromFileExistingInSessionAndRealPath()
                                                              throws Exception
Throws:
Exception

testReadFileToStringFromFileExistingInSessionAndRealPathWithSpecificFileEncoding

public void testReadFileToStringFromFileExistingInSessionAndRealPathWithSpecificFileEncoding()
                                                                                      throws Exception
Throws:
Exception

testReadLinesFromFileExistingInSessionAndRealPath

public void testReadLinesFromFileExistingInSessionAndRealPath()
                                                       throws Exception
Throws:
Exception

testReadLinesFromFileExistingInSessionAndRealPathWithSpecificFileEncoding

public void testReadLinesFromFileExistingInSessionAndRealPathWithSpecificFileEncoding()
                                                                               throws Exception
Throws:
Exception

testWriteStringToFile

public void testWriteStringToFile()
                           throws Exception
Throws:
Exception

testWrite

public void testWrite()
               throws Exception
Throws:
Exception

testWriteByteArrayToFile

public void testWriteByteArrayToFile()
                              throws Exception
Throws:
Exception

testWriteLines

public void testWriteLines()
                    throws Exception
Throws:
Exception

testSizeOf

public void testSizeOf()
                throws Exception
Throws:
Exception

testIsFileNewer

public void testIsFileNewer()
                     throws Exception
Throws:
Exception

testIsFileOlder

public void testIsFileOlder()
                     throws Exception
Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.