com.atlassian.crowd.acceptance.tests.persistence.manager.token
Class SwitchableTokenManagerImplTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.test.ConditionalTestCase
              extended by org.springframework.test.AbstractSpringContextTests
                  extended by org.springframework.test.AbstractSingleSpringContextTests
                      extended by org.springframework.test.AbstractDependencyInjectionSpringContextTests
                          extended by org.springframework.test.AbstractTransactionalSpringContextTests
                              extended by com.atlassian.crowd.acceptance.tests.persistence.manager.token.SwitchableTokenManagerImplTest
All Implemented Interfaces:
junit.framework.Test

public class SwitchableTokenManagerImplTest
extends org.springframework.test.AbstractTransactionalSpringContextTests


Field Summary
 
Fields inherited from class org.springframework.test.AbstractTransactionalSpringContextTests
transactionDefinition, transactionManager, transactionStatus
 
Fields inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests
AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO
 
Fields inherited from class org.springframework.test.AbstractSingleSpringContextTests
applicationContext
 
Fields inherited from class org.springframework.test.ConditionalTestCase
logger
 
Constructor Summary
SwitchableTokenManagerImplTest()
           
 
Method Summary
protected  void customizeBeanFactory(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory)
           
protected  String[] getConfigLocations()
           
protected  void onSetUp()
           
protected  void onTearDown()
           
 void testAdd()
           
 void testInvalidSwitch()
           
 void testSwitch()
           
 void testSwitchAfterAdd()
           
 void testSwitchToHibernateVolumeTest()
          Makes sure that we can complete test in a 'reasonable' amount of time.
 void testSwitchToMemoryVolumeTest()
          Makes sure that we can complete test in a 'reasonable' amount of time.
 
Methods inherited from class org.springframework.test.AbstractTransactionalSpringContextTests
endTransaction, isDefaultRollback, isRollback, onSetUpBeforeTransaction, onSetUpInTransaction, onTearDownAfterTransaction, onTearDownInTransaction, preventTransaction, setComplete, setDefaultRollback, setTransactionDefinition, setTransactionManager, startNewTransaction
 
Methods inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests
getAutowireMode, injectDependencies, isDependencyCheck, isPopulateProtectedVariables, prepareTestInstance, setAutowireMode, setDependencyCheck, setPopulateProtectedVariables
 
Methods inherited from class org.springframework.test.AbstractSingleSpringContextTests
contextKey, createApplicationContext, createBeanDefinitionReader, getApplicationContext, getConfigPath, getConfigPaths, getLoadCount, loadContext, loadContextLocations, prepareApplicationContext, setDirty, setUp, tearDown
 
Methods inherited from class org.springframework.test.AbstractSpringContextTests
addContext, contextKeyString, getContext, hasCachedContext, isContextKeyEmpty, setDirty
 
Methods inherited from class org.springframework.test.ConditionalTestCase
getDisabledTestCount, isDisabledInThisEnvironment, recordDisabled, runBare
 
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SwitchableTokenManagerImplTest

public SwitchableTokenManagerImplTest()
Method Detail

getConfigLocations

protected String[] getConfigLocations()
Overrides:
getConfigLocations in class org.springframework.test.AbstractSingleSpringContextTests

customizeBeanFactory

protected void customizeBeanFactory(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory)
Overrides:
customizeBeanFactory in class org.springframework.test.AbstractSingleSpringContextTests

onSetUp

protected void onSetUp()
                throws Exception
Overrides:
onSetUp in class org.springframework.test.AbstractTransactionalSpringContextTests
Throws:
Exception

onTearDown

protected void onTearDown()
                   throws Exception
Overrides:
onTearDown in class org.springframework.test.AbstractTransactionalSpringContextTests
Throws:
Exception

testAdd

public void testAdd()
             throws Exception
Throws:
Exception

testSwitch

public void testSwitch()

testInvalidSwitch

public void testInvalidSwitch()

testSwitchAfterAdd

public void testSwitchAfterAdd()
                        throws Exception
Throws:
Exception

testSwitchToMemoryVolumeTest

public void testSwitchToMemoryVolumeTest()
                                  throws Exception
Makes sure that we can complete test in a 'reasonable' amount of time.

Throws:
Exception

testSwitchToHibernateVolumeTest

public void testSwitchToHibernateVolumeTest()
                                     throws Exception
Makes sure that we can complete test in a 'reasonable' amount of time.

Throws:
Exception


Copyright © 2013 Atlassian. All Rights Reserved.