com.atlassian.user.impl.cache.properties
Class TestCachingPropertySetFactory

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.user.impl.cache.properties.TestCachingPropertySetFactory
All Implemented Interfaces:
junit.framework.Test

public class TestCachingPropertySetFactory
extends junit.framework.TestCase

Test the CachingPropertySetFactory. Initially must test that changes to the property sets are written to the cache, rather than being assumed to be updated in the cache by using the same object.


Constructor Summary
TestCachingPropertySetFactory()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testPropertyModificationsAreVisibleInCache()
           
 void testPropertySetIsRecachedOnWrite()
           
 void testUnderlyingPropertySetIsNotRetrievedOnSecondRead()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestCachingPropertySetFactory

public TestCachingPropertySetFactory()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

testPropertyModificationsAreVisibleInCache

public void testPropertyModificationsAreVisibleInCache()
                                                throws com.atlassian.user.EntityException
Throws:
com.atlassian.user.EntityException

testPropertySetIsRecachedOnWrite

public void testPropertySetIsRecachedOnWrite()
                                      throws com.atlassian.user.EntityException
Throws:
com.atlassian.user.EntityException

testUnderlyingPropertySetIsNotRetrievedOnSecondRead

public void testUnderlyingPropertySetIsNotRetrievedOnSecondRead()
                                                         throws com.atlassian.user.EntityException
Throws:
com.atlassian.user.EntityException


Copyright © 2005-2009 Atlassian Software Systems Pty Ltd. All Rights Reserved.