public abstract class TokenDAOTester extends BaseSpringTestCase
Modifier and Type | Field and Description |
---|---|
protected static long |
DIRECTORY_ID |
protected static long |
RANDOM_NUMBER |
protected static Long |
TOKEN_ID |
protected static String |
TOKEN_KEY |
protected TokenDAO |
tokenDAO |
jdbcTemplate
transactionDefinition, transactionManager, transactionStatus
AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO
Constructor and Description |
---|
TokenDAOTester() |
Modifier and Type | Method and Description |
---|---|
void |
onSetUp() |
protected void |
setTokenDAO(TokenDAO tokenDAO) |
void |
testAdd() |
void |
testFindByIdentifierHash() |
void |
testFindByKey() |
void |
testLoadAll() |
void |
testRemove() |
void |
testRemoveAll() |
void |
testRemoveAllByDirectory() |
void |
testRemoveAllExpiredTokens() |
void |
testRemoveByName() |
void |
testRemoveExpiredTokensWithSpecificDurationGreaterThanSessionMaxLife() |
void |
testRemoveExpiredTokensWithSpecificDurationLessThanSessionMaxLife() |
void |
testSaveAllWithNoTokens() |
void |
testSaveAllWithTestTokens() |
void |
testSearch() |
void |
testSearchByLastAccessedTime() |
void |
testSearchForApplicationTokens() |
void |
testSearchForPrincipalTokenByName() |
void |
testSearchForPrincipalTokensByDirectoryId() |
void |
testSearchForSecretNumberWhereSecretNumberIsEmpty() |
void |
testSearchForTokenBySecretNumber() |
void |
testSearchWithIndexConstraints() |
void |
testSearchWithIndexConstraintsSkippingTheFirstResult() |
void |
testUpdate() |
flush, getConfigLocations, getSampleDataFileName, newTransactionForBatchOperations, onSetUpBeforeTransaction, setResetableHiLoGeneratorHelper
countRowsInTable, deleteFromTables, executeSqlScript, getJdbcTemplate, setComplete, setDataSource, setSqlScriptEncoding
endTransaction, isDefaultRollback, isRollback, onSetUpInTransaction, onTearDown, onTearDownAfterTransaction, onTearDownInTransaction, preventTransaction, setDefaultRollback, setTransactionDefinition, setTransactionManager, startNewTransaction
getAutowireMode, injectDependencies, isDependencyCheck, isPopulateProtectedVariables, prepareTestInstance, setAutowireMode, setDependencyCheck, setPopulateProtectedVariables
contextKey, createApplicationContext, createBeanDefinitionReader, customizeBeanFactory, getApplicationContext, getConfigPath, getConfigPaths, getLoadCount, loadContext, loadContextLocations, prepareApplicationContext, setDirty, setUp, tearDown
addContext, contextKeyString, getContext, hasCachedContext, isContextKeyEmpty, setDirty
getDisabledTestCount, isDisabledInThisEnvironment, recordDisabled, runBare
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
protected static final String TOKEN_KEY
protected TokenDAO tokenDAO
protected static final long DIRECTORY_ID
protected static final long RANDOM_NUMBER
protected static final Long TOKEN_ID
public void onSetUp() throws Exception
onSetUp
in class org.springframework.test.AbstractTransactionalSpringContextTests
Exception
public void testAdd() throws PersistenceException
PersistenceException
public void testRemove() throws PersistenceException
PersistenceException
public void testRemoveByName()
public void testSearch() throws PersistenceException
PersistenceException
public void testSearchForPrincipalTokensByDirectoryId()
public void testSearchForApplicationTokens()
public void testSearchForPrincipalTokenByName()
public void testSearchByLastAccessedTime() throws ParseException
ParseException
public void testSearchWithIndexConstraints()
public void testSearchWithIndexConstraintsSkippingTheFirstResult()
public void testSearchForTokenBySecretNumber()
public void testSearchForSecretNumberWhereSecretNumberIsEmpty()
public void testRemoveAllByDirectory()
public void testRemoveAllExpiredTokens() throws Exception
Exception
public void testRemoveExpiredTokensWithSpecificDurationLessThanSessionMaxLife() throws Exception
Exception
public void testRemoveExpiredTokensWithSpecificDurationGreaterThanSessionMaxLife() throws Exception
Exception
public void testRemoveAll()
public void testSaveAllWithTestTokens() throws Exception
Exception
protected void setTokenDAO(TokenDAO tokenDAO)
Copyright © 2013 Atlassian. All Rights Reserved.