com.atlassian.crowd.acceptance.tests.persistence.dao.token
Class TokenDAOHibernateTest

java.lang.Object
  extended by com.atlassian.crowd.acceptance.tests.persistence.dao.token.TokenDAOTester
      extended by com.atlassian.crowd.acceptance.tests.persistence.dao.token.TokenDAOHibernateTest

@ContextConfiguration(locations={"classpath:/applicationContext-config.xml","classpath:/applicationContext-CrowdDAO.xml"})
@TestExecutionListeners(value={org.springframework.test.context.transaction.TransactionalTestExecutionListener.class,org.springframework.test.context.support.DependencyInjectionTestExecutionListener.class})
@Transactional
public class TokenDAOHibernateTest
extends TokenDAOTester


Field Summary
 
Fields inherited from class com.atlassian.crowd.acceptance.tests.persistence.dao.token.TokenDAOTester
DIRECTORY_ID, expectedException, RANDOM_NUMBER, TOKEN_ID, TOKEN_KEY, TOKEN1_ID_HASH, TOKEN2_ID_HASH, TOKEN3_ID_HASH
 
Constructor Summary
TokenDAOHibernateTest()
           
 
Method Summary
 void fixHiLo()
           
protected  TokenDAO getTokenDAO()
           
 void loadTestData()
           
 void testCallingTokenRemovalTwiceDoesNotThrowAnException()
           
 void testFindByID()
           
 void testTokenRemovalWhereTokenDoesNotExist()
           
 
Methods inherited from class com.atlassian.crowd.acceptance.tests.persistence.dao.token.TokenDAOTester
testAdd, testAddWithDuplicateIdentifierHash, testFindByIdentifierHash, testFindByKey, testLoadAll, testRemove, testRemoveAll, testRemoveAllByDirectory, testRemoveAllExpiredTokens, testRemoveByName, testRemoveExpiredTokensWithSpecificDurationGreaterThanSessionMaxLife, testRemoveExpiredTokensWithSpecificDurationLessThanSessionMaxLife, testSaveAllWithNoTokens, testSaveAllWithTestTokens, testSearch, testSearchByLastAccessedTime, testSearchForApplicationTokens, testSearchForPrincipalTokenByName, testSearchForPrincipalTokensByDirectoryId, testSearchForSecretNumberWhereSecretNumberIsEmpty, testSearchForTokenBySecretNumber, testSearchWithIndexConstraints, testSearchWithIndexConstraintsSkippingTheFirstResult, testUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenDAOHibernateTest

public TokenDAOHibernateTest()
Method Detail

loadTestData

@BeforeTransaction
public void loadTestData()
                  throws Exception
Throws:
Exception

fixHiLo

public void fixHiLo()

testFindByID

public void testFindByID()
                  throws Exception
Throws:
Exception

testTokenRemovalWhereTokenDoesNotExist

public void testTokenRemovalWhereTokenDoesNotExist()
                                            throws Exception
Throws:
Exception

testCallingTokenRemovalTwiceDoesNotThrowAnException

public void testCallingTokenRemovalTwiceDoesNotThrowAnException()
                                                         throws Exception
Throws:
Exception

getTokenDAO

protected TokenDAO getTokenDAO()
Specified by:
getTokenDAO in class TokenDAOTester


Copyright © 2013 Atlassian. All Rights Reserved.