public abstract class BaseStoreTestCase
extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
companyId |
protected long |
repositoryId |
protected com.liferay.document.library.kernel.store.Store |
store |
Constructor and Description |
---|
BaseStoreTestCase() |
protected long companyId
protected long repositoryId
protected com.liferay.document.library.kernel.store.Store store
public void setUp() throws Exception
Exception
public void tearDown() throws Exception
Exception
public void testAddFileWithBufferedInputStream() throws Exception
Exception
public void testAddFileWithByteArray() throws Exception
Exception
public void testAddFileWithByteArrayInputStream() throws Exception
Exception
public void testAddFileWithFile() throws Exception
Exception
public void testAddFileWithFileInputStream() throws Exception
Exception
public void testAddFileWithUnsyncByteArrayInputStream() throws Exception
Exception
public void testCopyFileVersion() throws Exception
Exception
public void testCopyFileVersionDuplicateFileException() throws Exception
Exception
public void testCopyFileVersionNoSuchFileException() throws Exception
Exception
public void testDeleteDirectory() throws Exception
Exception
public void testDeleteDirectoryWithTwoLevelDeep() throws Exception
Exception
public void testDeleteFile() throws Exception
Exception
public void testDeleteFileWithVersion() throws Exception
Exception
public void testGetFileAsBytesNoSuchFileException() throws Exception
Exception
public void testGetFileAsStream() throws Exception
Exception
public void testGetFileAsStreamWithVersion() throws Exception
Exception
public void testGetFileNames() throws Exception
Exception
public void testGetFileNamesWithDirectoryOneLevelDeep() throws Exception
Exception
public void testGetFileNamesWithDirectoryTwoLevelDeep() throws Exception
Exception
public void testGetFileNamesWithInvalidDirectory()
public void testGetFileNamesWithInvalidRepository() throws Exception
Exception
public void testGetFileNamesWithTwoLevelsDeep() throws Exception
Exception
public void testGetFileSize() throws Exception
Exception
public void testGetFileSizeNoSuchFileException() throws Exception
Exception
public void testGetFileVersionAsBytesNoSuchFileException() throws Exception
Exception
public void testHasFile() throws Exception
Exception
public 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
Exception
public void testUpdateFileVersionDuplicateFileException() throws Exception
Exception
public void testUpdateFileVersionNoSuchFileException() throws Exception
Exception
public void testUpdateFileVersionWithNewFileName() throws Exception
Exception
public void testUpdateFileWithByteArray() throws Exception
Exception
public void testUpdateFileWithFile() throws Exception
Exception
public void testUpdateFileWithInputStream() throws Exception
Exception
public void testUpdateFileWithNewFileName() throws Exception
Exception
public void testUpdateFileWithNewFileNameDuplicateFileException() throws Exception
Exception
public void testUpdateFileWithNewFileNameNoSuchFileException() throws Exception
Exception
public void testUpdateFileWithNewRepositoryId() throws Exception
Exception
public void testUpdateFileWithNewRepositoryIdDuplicateFileException() throws Exception
Exception
public void testUpdateFileWithNewRepositoryIdNoSuchFileException() throws Exception
Exception
protected void addVersions(String fileName, int newVersionCount) throws Exception
Exception
protected File createFile(byte[] fileData) throws IOException
IOException
protected abstract com.liferay.document.library.kernel.store.Store getStore()