public abstract class AbstractInjectableHibernateAttachmentDaoIntegrationTestBase extends AbstractInjectableStateTest
Modifier and Type | Field and Description |
---|---|
protected Attachment |
attachment |
protected static String |
ATTACHMENT_CONTENT_TYPE |
protected static String |
ATTACHMENT_DATA_STRING |
protected static String |
ATTACHMENT_FILE_NAME |
protected static String |
ATTACHMENT_FILESTORE_ID |
protected static String |
ATTACHMENT2_FILE_NAME |
protected AbstractHibernateAttachmentDao |
attachmentDao |
org.junit.rules.ExpectedException |
expectedException |
protected static String |
FILE_MODULE |
protected static String |
LONG_COMMENT |
protected AttachmentDataDao |
mockAttachmentDataDao |
org.mockito.junit.MockitoRule |
mockitoRule |
protected Page |
page |
protected PageDao |
pageDao |
protected Space |
space |
protected static String |
UPDATED_ATTACHMENT_FILE_NAME |
admin, state
Constructor and Description |
---|
AbstractInjectableHibernateAttachmentDaoIntegrationTestBase() |
initUsers, resetState
public org.mockito.junit.MockitoRule mockitoRule
public org.junit.rules.ExpectedException expectedException
protected static final String ATTACHMENT_FILE_NAME
protected static final String ATTACHMENT_FILESTORE_ID
protected static final String ATTACHMENT2_FILE_NAME
protected static final String UPDATED_ATTACHMENT_FILE_NAME
protected static final String ATTACHMENT_CONTENT_TYPE
protected static final String ATTACHMENT_DATA_STRING
protected static final String FILE_MODULE
protected static final String LONG_COMMENT
protected AttachmentDataDao mockAttachmentDataDao
protected AbstractHibernateAttachmentDao attachmentDao
@Inject protected PageDao pageDao
protected Attachment attachment
protected Page page
protected Space space
public AbstractInjectableHibernateAttachmentDaoIntegrationTestBase()
protected InputStream getNewInputStream()
protected abstract AbstractHibernateAttachmentDao getAttachmentDao()
protected abstract AttachmentDataDao getMockAttachmentDataDao()
public final void setup()
public final void teardown()
public void verifyNoInteractionOnMocks()
public void testGetLatestVersionOfAttachmentsOnNewPage()
public void testGetLatestVersionOfAttachments()
public void testGetLatestVersionOfAttachmentsForMultipleCeos()
public void testCountLatestVersionOfAttachments()
public void testGetAttachmentStatistics()
public void testGetLatestVersionOfAttachmentsWithAnyStatus()
public void testCountLatestVersionsOfAttachmentsOnPageSince() throws InterruptedException
InterruptedException
public void testCountLatestVersionOfAttachmentsWithAnyStatus()
public void testGetByIds()
public void testGetAttachmentData() throws AttachmentDataNotFoundException, IOException
public void testSaveNewAttachment()
public void testSaveNewAttachmentWithLongComment()
public void testSaveNewAttachmentVersion()
public void testSaveNewAttachmentVersionWithLongComment()
public void testMoveAttachment()
public void testMoveAttachmentWithNonLatestVersion()
public void testMoveAttachmentLongComment()
public void testReplaceAttachmentData()
public void testRemoveAttachmentFromServer()
public void testRemoveAttachmentWithMultipleVersionFromServer()
public void testFindAllVersions()
public void testGetLastAddedVersionsOf()
public void testGetRemappedIds()
public void testFindLatestVersionIdsIterator()
public void testFindLatestVersionIdsFromSpacesIterator()
public void testFindLatestVersionsIterator()
public void testUpdateAttachment()
protected void saveAttachmentAndVerify(Attachment attachment, InputStream stream)
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences