com.liferay.portal.store.test.util.BaseStoreTestCase@Deprecated
public abstract class BaseStoreTestCase
extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
companyId
Deprecated.
|
protected long |
repositoryId
Deprecated.
|
protected com.liferay.document.library.kernel.store.Store |
store
Deprecated.
|
| Constructor and Description |
|---|
BaseStoreTestCase()
Deprecated.
|
protected long companyId
protected long repositoryId
protected com.liferay.document.library.kernel.store.Store store
public void setUp()
throws Exception
Exceptionpublic void tearDown()
throws Exception
Exceptionpublic void testAddFileWithBufferedInputStream()
throws Exception
Exceptionpublic void testAddFileWithByteArray()
throws Exception
Exceptionpublic void testAddFileWithByteArrayInputStream()
throws Exception
Exceptionpublic void testAddFileWithFile()
throws Exception
Exceptionpublic void testAddFileWithFileInputStream()
throws Exception
Exceptionpublic void testAddFileWithUnsyncByteArrayInputStream()
throws Exception
Exceptionpublic void testCopyFileVersion()
throws Exception
Exceptionpublic void testCopyFileVersionDuplicateFileException()
throws Exception
Exceptionpublic void testCopyFileVersionNoSuchFileException()
throws Exception
Exceptionpublic void testDeleteDirectory()
throws Exception
Exceptionpublic void testDeleteDirectoryWithTwoLevelDeep()
throws Exception
Exceptionpublic void testDeleteFile()
throws Exception
Exceptionpublic void testDeleteFileWithVersion()
throws Exception
Exceptionpublic void testGetFileAsBytesNoSuchFileException()
throws Exception
Exceptionpublic void testGetFileAsStream()
throws Exception
Exceptionpublic void testGetFileAsStreamWithVersion()
throws Exception
Exceptionpublic void testGetFileNames()
throws Exception
Exceptionpublic void testGetFileNamesWithDirectoryOneLevelDeep()
throws Exception
Exceptionpublic void testGetFileNamesWithDirectoryTwoLevelDeep()
throws Exception
Exceptionpublic void testGetFileNamesWithInvalidDirectory()
public void testGetFileNamesWithInvalidRepository()
throws Exception
Exceptionpublic void testGetFileNamesWithTwoLevelsDeep()
throws Exception
Exceptionpublic void testGetFileSize()
throws Exception
Exceptionpublic void testGetFileSizeNoSuchFileException()
throws Exception
Exceptionpublic void testGetFileVersionAsBytesNoSuchFileException()
throws Exception
Exceptionpublic void testHasFile()
throws Exception
Exceptionpublic void testHasFileWithVersion()
throws Exception
Exception@ExpectedLogs(expectedLogs=@ExpectedLog(expectedLog="Unable to delete file {companyId=",expectedType=PREFIX), level="WARN", loggerClass=com.liferay.document.library.kernel.store.BaseStore.class) public void testLogFailedDeletion()
@ExpectedLogs(expectedLogs=@ExpectedLog(expectedLog="Unable to delete file {companyId=",expectedType=PREFIX), level="WARN", loggerClass=com.liferay.document.library.kernel.store.BaseStore.class) public void testLogFailedDeletionWithVersionLabel()
public void testUpdateFileVersion()
throws Exception
Exceptionpublic void testUpdateFileVersionDuplicateFileException()
throws Exception
Exceptionpublic void testUpdateFileVersionNoSuchFileException()
throws Exception
Exceptionpublic void testUpdateFileVersionWithNewFileName()
throws Exception
Exceptionpublic void testUpdateFileWithByteArray()
throws Exception
Exceptionpublic void testUpdateFileWithFile()
throws Exception
Exceptionpublic void testUpdateFileWithInputStream()
throws Exception
Exceptionpublic void testUpdateFileWithNewFileName()
throws Exception
Exceptionpublic void testUpdateFileWithNewFileNameDuplicateFileException()
throws Exception
Exceptionpublic void testUpdateFileWithNewFileNameNoSuchFileException()
throws Exception
Exceptionpublic void testUpdateFileWithNewRepositoryId()
throws Exception
Exceptionpublic void testUpdateFileWithNewRepositoryIdDuplicateFileException()
throws Exception
Exceptionpublic void testUpdateFileWithNewRepositoryIdNoSuchFileException()
throws Exception
Exceptionprotected void addVersions(String fileName,
int newVersionCount)
throws Exception
Exceptionprotected File createFile(byte[] fileData)
throws IOException
IOExceptionprotected abstract com.liferay.document.library.kernel.store.Store getStore()