org.silverpeas.process.io.file
Class FileHandlerTest
java.lang.Object
org.silverpeas.process.io.file.AbstractHandledFileTest
org.silverpeas.process.io.file.FileHandlerTest
public class FileHandlerTest
- extends AbstractHandledFileTest
- Author:
- Yohann Chastagnier
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileHandlerTest
public FileHandlerTest()
testGetHandledFileWhenTechnicalNullIsPassedAsFileParameter
public void testGetHandledFileWhenTechnicalNullIsPassedAsFileParameter()
testGetHandledFileWhenNotHandledFileIsPassedAsFileParameter
public void testGetHandledFileWhenNotHandledFileIsPassedAsFileParameter()
testGetHandledFileFromSessionComponentPathWhenExistingInSession
public void testGetHandledFileFromSessionComponentPathWhenExistingInSession()
throws Exception
- Throws:
Exception
testGetHandledFileFromRealFileWhenExistingInSessionPath
public void testGetHandledFileFromRealFileWhenExistingInSessionPath()
throws Exception
- Throws:
Exception
testGetHandledFileFromRealFileWhenExistingInRealPathOnly
public void testGetHandledFileFromRealFileWhenExistingInRealPathOnly()
throws Exception
- Throws:
Exception
testGetFileFromNotHandledFile
public void testGetFileFromNotHandledFile()
throws Exception
- Throws:
Exception
testGetFileFromNotHandledSubdirectoryAndFile
public void testGetFileFromNotHandledSubdirectoryAndFile()
throws Exception
- Throws:
Exception
testGetHandledTemporaryFile
public void testGetHandledTemporaryFile()
throws Exception
- Throws:
Exception
testOpenOutputStreamWhenNotHandledFileIsPassedAsFileParameter
public void testOpenOutputStreamWhenNotHandledFileIsPassedAsFileParameter()
throws Exception
- Throws:
Exception
testOpenOutputStreamWhenFileDoesntExistInSessionOrRealPath
public void testOpenOutputStreamWhenFileDoesntExistInSessionOrRealPath()
throws Exception
- Throws:
Exception
testOpenOutputStream
public void testOpenOutputStream()
throws Exception
- Throws:
Exception
testOpenInputStreamWhenNotExistingNotHandledFileIsPassedAsFileParameter
public void testOpenInputStreamWhenNotExistingNotHandledFileIsPassedAsFileParameter()
throws Exception
- Throws:
Exception
testOpenInputStreamWhenExistingNotHandledFileIsPassedAsFileParameter
public void testOpenInputStreamWhenExistingNotHandledFileIsPassedAsFileParameter()
throws Exception
- Throws:
Exception
testOpenInputStreamWhenFileDoesntExistInSessionPath
public void testOpenInputStreamWhenFileDoesntExistInSessionPath()
throws Exception
- Throws:
Exception
testOpenInputStreamWhenFileDoesntExistInRealPath
public void testOpenInputStreamWhenFileDoesntExistInRealPath()
throws Exception
- Throws:
Exception
testOpenInputStreamWhenFileExistsInRealPathOnly
public void testOpenInputStreamWhenFileExistsInRealPathOnly()
throws Exception
- Throws:
Exception
testOpenInputStreamWhenFileExistsInSessionPathOnly
public void testOpenInputStreamWhenFileExistsInSessionPathOnly()
throws Exception
- Throws:
Exception
testOpenInputStreamWhenFileExistsInSessionAndRealPath
public void testOpenInputStreamWhenFileExistsInSessionAndRealPath()
throws Exception
- Throws:
Exception
testTouchWhenExistingNotHandledFileIsPassedAsFileParameter
public void testTouchWhenExistingNotHandledFileIsPassedAsFileParameter()
throws Exception
- Throws:
Exception
testTouchWhenNoBasePathIsPassed
public void testTouchWhenNoBasePathIsPassed()
throws Exception
- Throws:
Exception
testTouchWhenFileDoesntExistAtAll
public void testTouchWhenFileDoesntExistAtAll()
throws Exception
- Throws:
Exception
testTouchWhenFileExistsInRealPath
public void testTouchWhenFileExistsInRealPath()
throws Exception
- Throws:
Exception
testListFilesWhenExistingNotHandledFileIsPassedAsFileParameter
public void testListFilesWhenExistingNotHandledFileIsPassedAsFileParameter()
throws Exception
- Throws:
Exception
testListFilesWithNotDirectoryParameter
public void testListFilesWithNotDirectoryParameter()
throws Exception
- Throws:
Exception
testListFilesFromSessionAndRealPath
public void testListFilesFromSessionAndRealPath()
throws Exception
- Throws:
Exception
testListFilesFromSessionAndRealPathWithFilters
public void testListFilesFromSessionAndRealPathWithFilters()
throws Exception
- Throws:
Exception
testContentEqualsWhenFirstFileToCompareIsNotHandled
public void testContentEqualsWhenFirstFileToCompareIsNotHandled()
throws Exception
- Throws:
Exception
testContentEqualsWhenSecondFileToCompareIsNotHandled
public void testContentEqualsWhenSecondFileToCompareIsNotHandled()
throws Exception
- Throws:
Exception
testContentEqualsWhenSecondFileToCompareIsNotHandledEvenIfHandledBasePathIsSpecified
public void testContentEqualsWhenSecondFileToCompareIsNotHandledEvenIfHandledBasePathIsSpecified()
throws Exception
- Throws:
Exception
testContentEqualsFromUniqueHandledPath
public void testContentEqualsFromUniqueHandledPath()
throws Exception
- Throws:
Exception
testContentEqualsBetweenHandledFilesButOnlyTheSecondFileKnownAsHandled
public void testContentEqualsBetweenHandledFilesButOnlyTheSecondFileKnownAsHandled()
throws Exception
- Throws:
Exception
testContentEqualsBetweenNotHandledFileAndHandledFile
public void testContentEqualsBetweenNotHandledFileAndHandledFile()
throws Exception
- Throws:
Exception
testCopyFileWithNotHandledFilesWhereasTheyHaveToBe
public void testCopyFileWithNotHandledFilesWhereasTheyHaveToBe()
throws Exception
- Throws:
Exception
testCopyFileFromNotHandledFileWhereasItHasToBe
public void testCopyFileFromNotHandledFileWhereasItHasToBe()
throws Exception
- Throws:
Exception
testCopyFileToNotHandledFile
public void testCopyFileToNotHandledFile()
throws Exception
- Throws:
Exception
testCopyFileWhereasTheFileToCopyIsDirectory
public void testCopyFileWhereasTheFileToCopyIsDirectory()
throws Exception
- Throws:
Exception
testCopyFileWhereasTheDestinationFileIsDirectory
public void testCopyFileWhereasTheDestinationFileIsDirectory()
throws Exception
- Throws:
Exception
testCopyFileFromNotHandledFileWhereasTheDestinationFileIsDirectory
public void testCopyFileFromNotHandledFileWhereasTheDestinationFileIsDirectory()
throws Exception
- Throws:
Exception
testCopyFile
public void testCopyFile()
throws Exception
- Throws:
Exception
testDeleteOnNotHandledFile
public void testDeleteOnNotHandledFile()
throws Exception
- Throws:
Exception
testCleanDirectoryOnNotHandledPath
public void testCleanDirectoryOnNotHandledPath()
throws Exception
- Throws:
Exception
testCleanDirectoryOnNotHandledFile
public void testCleanDirectoryOnNotHandledFile()
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
testWaitForOnNotHandledFile
public void testWaitForOnNotHandledFile()
testWaitForWithSuccessFileCreationInTime
public void testWaitForWithSuccessFileCreationInTime()
throws Exception
- Throws:
Exception
testWaitForForWithFailFileCreationInTime
public void testWaitForForWithFailFileCreationInTime()
throws Exception
- Throws:
Exception
testMoveFileFromNotHandledFile
public void testMoveFileFromNotHandledFile()
throws Exception
- Throws:
Exception
testMoveFileToNotHandledFile
public void testMoveFileToNotHandledFile()
throws Exception
- Throws:
Exception
testMoveFileFromNotHandledFileInMultiHandledBasePathMethod
public void testMoveFileFromNotHandledFileInMultiHandledBasePathMethod()
throws Exception
- Throws:
Exception
testMoveFileToNotHandledFileInMultiHandledBasePathMethod
public void testMoveFileToNotHandledFileInMultiHandledBasePathMethod()
throws Exception
- Throws:
Exception
testMoveFileWithNullFileParameter
public void testMoveFileWithNullFileParameter()
throws Exception
- Throws:
Exception
testMoveFile
public void testMoveFile()
throws Exception
- Throws:
Exception
testReadFileToStringWithNotHandledFile
public void testReadFileToStringWithNotHandledFile()
throws Exception
- Throws:
Exception
testReadFileToStringWithNotHandlefFileAndSpecificFileEncoding
public void testReadFileToStringWithNotHandlefFileAndSpecificFileEncoding()
throws Exception
- Throws:
Exception
testReadFileToByteArrayWithNotHandledFile
public void testReadFileToByteArrayWithNotHandledFile()
throws Exception
- Throws:
Exception
testReadLinesWithNotHandledFile
public void testReadLinesWithNotHandledFile()
throws Exception
- Throws:
Exception
testReadLinesWithNotHandlefFileAndSpecificFileEncoding
public void testReadLinesWithNotHandlefFileAndSpecificFileEncoding()
throws Exception
- Throws:
Exception
testReadFileToStringWithNotExistingFile
public void testReadFileToStringWithNotExistingFile()
throws Exception
- Throws:
Exception
testReadFileWhithExistingFileMarkedAsDeleted
public void testReadFileWhithExistingFileMarkedAsDeleted()
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
testWriteStringToFileThatIsNotHandled
public void testWriteStringToFileThatIsNotHandled()
throws Exception
- Throws:
Exception
testWriteStringToFileThatIsNotHandledWithExplicitAppendParameter
public void testWriteStringToFileThatIsNotHandledWithExplicitAppendParameter()
throws Exception
- Throws:
Exception
testWriteStringToFileThatIsNotHandledWithSpecificFileEncoding
public void testWriteStringToFileThatIsNotHandledWithSpecificFileEncoding()
throws Exception
- Throws:
Exception
testWriteStringToFileThatIsNotHandledWithSpecificFileEncodingAndExplicitAppendParameter
public void testWriteStringToFileThatIsNotHandledWithSpecificFileEncodingAndExplicitAppendParameter()
throws Exception
- Throws:
Exception
testWriteStringToFile
public void testWriteStringToFile()
throws Exception
- Throws:
Exception
testWriteFileThatIsNotHandled
public void testWriteFileThatIsNotHandled()
throws Exception
- Throws:
Exception
testWriteFileThatIsNotHandledWithExplicitAppendParameter
public void testWriteFileThatIsNotHandledWithExplicitAppendParameter()
throws Exception
- Throws:
Exception
testWriteFileThatIsNotHandledWithSpecificFileEncoding
public void testWriteFileThatIsNotHandledWithSpecificFileEncoding()
throws Exception
- Throws:
Exception
testWriteFileThatIsNotHandledWithSpecificFileEncodingAndExplicitAppendParameter
public void testWriteFileThatIsNotHandledWithSpecificFileEncodingAndExplicitAppendParameter()
throws Exception
- Throws:
Exception
testWrite
public void testWrite()
throws Exception
- Throws:
Exception
testWriteByteArrayToFileThatIsNotHandled
public void testWriteByteArrayToFileThatIsNotHandled()
throws Exception
- Throws:
Exception
testWriteByteArrayToFileThatIsNotHandledWithExplicitAppendParameter
public void testWriteByteArrayToFileThatIsNotHandledWithExplicitAppendParameter()
throws Exception
- Throws:
Exception
testWriteByteArrayToFileWithNullData
public void testWriteByteArrayToFileWithNullData()
throws Exception
- Throws:
Exception
testWriteByteArrayToFile
public void testWriteByteArrayToFile()
throws Exception
- Throws:
Exception
testWriteLinesToFileThatIsNotHandled
public void testWriteLinesToFileThatIsNotHandled()
throws Exception
- Throws:
Exception
testWriteLinesToFileThatIsNotHandledWithExplicitAppendParameter
public void testWriteLinesToFileThatIsNotHandledWithExplicitAppendParameter()
throws Exception
- Throws:
Exception
testWriteLinesToFileThatIsNotHandledWithSpecifiedLineEnding
public void testWriteLinesToFileThatIsNotHandledWithSpecifiedLineEnding()
throws Exception
- Throws:
Exception
testWriteLinesToFileThatIsNotHandledWithSpecifiedLineEndingAndWithExplicitAppendParameter
public void testWriteLinesToFileThatIsNotHandledWithSpecifiedLineEndingAndWithExplicitAppendParameter()
throws Exception
- Throws:
Exception
testWriteLinesToFileThatIsNotHandledWithSpecificEncodingParameterAnd
public void testWriteLinesToFileThatIsNotHandledWithSpecificEncodingParameterAnd()
throws Exception
- Throws:
Exception
testWriteLinesToFileThatIsNotHandledWithSpecificEncodingParameterAndWithExplicitAppendParameter
public void testWriteLinesToFileThatIsNotHandledWithSpecificEncodingParameterAndWithExplicitAppendParameter()
throws Exception
- Throws:
Exception
testWriteLinesToFileThatIsNotHandledWithSpecificEncodingParameterAndWithSpecifiedLineEnding
public void testWriteLinesToFileThatIsNotHandledWithSpecificEncodingParameterAndWithSpecifiedLineEnding()
throws Exception
- Throws:
Exception
testWriteLinesToFileThatIsNotHandledWithSpecificEncodingParameterAndWithSpecifiedLineEndingAndWithExplicitAppendParameter
public void testWriteLinesToFileThatIsNotHandledWithSpecificEncodingParameterAndWithSpecifiedLineEndingAndWithExplicitAppendParameter()
throws Exception
- Throws:
Exception
testWriteLines
public void testWriteLines()
throws Exception
- Throws:
Exception
testSizeOfNotHandledFile
public void testSizeOfNotHandledFile()
testSizeOfDirectoryOnNotHandledFile
public void testSizeOfDirectoryOnNotHandledFile()
testSizeOfDirectoryOnFile
public void testSizeOfDirectoryOnFile()
throws Exception
- Throws:
Exception
testSizeOf
public void testSizeOf()
throws Exception
- Throws:
Exception
testSizeOfDirectory
public void testSizeOfDirectory()
throws Exception
- Throws:
Exception
testIsFileNewerBetweenNotHandledFileAndHandledFile
public void testIsFileNewerBetweenNotHandledFileAndHandledFile()
testIsFileNewerBetweenHandledFileAndNotHandledFile
public void testIsFileNewerBetweenHandledFileAndNotHandledFile()
testIsFileNewerWithNotHandledFileFromDate
public void testIsFileNewerWithNotHandledFileFromDate()
testIsFileNewerWithNotHandledFileFromDateInMilliseconds
public void testIsFileNewerWithNotHandledFileFromDateInMilliseconds()
testIsFileNewer
public void testIsFileNewer()
throws Exception
- Throws:
Exception
testIsFileOlderBetweenNotHandledFileAndHandledFile
public void testIsFileOlderBetweenNotHandledFileAndHandledFile()
testIsFileOlderBetweenHandledFileAndNotHandledFile
public void testIsFileOlderBetweenHandledFileAndNotHandledFile()
testIsFileOlderWithNotHandledFileFromDate
public void testIsFileOlderWithNotHandledFileFromDate()
testIsFileOlderWithNotHandledFileFromDateInMilliseconds
public void testIsFileOlderWithNotHandledFileFromDateInMilliseconds()
testIsFileOlder
public void testIsFileOlder()
throws Exception
- Throws:
Exception
testGetSessionHandledRootPathNames
public void testGetSessionHandledRootPathNames()
throws Exception
- Throws:
Exception
testListAllSessionHandledRootPathFiles
public void testListAllSessionHandledRootPathFiles()
throws Exception
- Throws:
Exception
Copyright © 2016 Silverpeas. All Rights Reserved.