public class

TestCachingAttachmentDao

extends TestCase
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.framework.TestCase
       ↳ com.atlassian.confluence.pages.attachments.TestCachingAttachmentDao

Summary

Public Constructors
TestCachingAttachmentDao()
Public Methods
void testFlushClearsCache()
void testGetByIdIfCacheHit()
void testGetDelegatesIfCacheMiss()
void testGetDelegatesToGetByNameIfIdNotFound()
void testGetWithNullContentThrowsException()
void testGetWithNullFileNameThrowsException()
void testMoveAttachment()
void testRaceConditionFallsBack()
void testRemoveAttachmentRemovesCacheEntry()
Protected Methods
void setUp()
[Expand]
Inherited Methods
From class junit.framework.TestCase
From class junit.framework.Assert
From class java.lang.Object
From interface junit.framework.Test

Public Constructors

public TestCachingAttachmentDao ()

Public Methods

public void testFlushClearsCache ()

Throws
Exception

public void testGetByIdIfCacheHit ()

Throws
Exception

public void testGetDelegatesIfCacheMiss ()

Throws
Exception

public void testGetDelegatesToGetByNameIfIdNotFound ()

Throws
Exception

public void testGetWithNullContentThrowsException ()

Throws
Exception

public void testGetWithNullFileNameThrowsException ()

Throws
Exception

public void testMoveAttachment ()

Throws
Exception

public void testRaceConditionFallsBack ()

Throws
Exception

public void testRemoveAttachmentRemovesCacheEntry ()

Throws
Exception

Protected Methods

protected void setUp ()

Throws
Exception