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

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 com.atlassian.crowd.acceptance.tests.persistence.manager.token.TokenManagerImplTest
All Implemented Interfaces:
junit.framework.Test

public class TokenManagerImplTest
extends org.springframework.test.AbstractDependencyInjectionSpringContextTests


Field Summary
 
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
TokenManagerImplTest()
           
 
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.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
countTestCases, createResult, getName, run, run, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TokenManagerImplTest

public TokenManagerImplTest()
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.AbstractSingleSpringContextTests
Throws:
Exception

onTearDown

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

testAdd

public void testAdd()
             throws InvalidTokenException
Throws:
InvalidTokenException

testSwitch

public void testSwitch()

testInvalidSwitch

public void testInvalidSwitch()

testSwitchAfterAdd

public void testSwitchAfterAdd()
                        throws InvalidTokenException
Throws:
InvalidTokenException

testSwitchToMemoryVolumeTest

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

Throws:
InvalidTokenException

testSwitchToHibernateVolumeTest

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

Throws:
InvalidTokenException


Copyright © 2012 Atlassian. All Rights Reserved.