@Transactional public abstract class TokenDAOTester extends Object
Modifier and Type | Field and Description |
---|---|
protected static long |
DIRECTORY_ID |
org.hamcrest.junit.ExpectedException |
expectedException |
protected static long |
RANDOM_NUMBER |
protected static Long |
TOKEN_ID |
protected static String |
TOKEN_KEY |
protected static String |
TOKEN1_ID_HASH |
protected static String |
TOKEN2_ID_HASH |
protected static String |
TOKEN3_ID_HASH |
Constructor and Description |
---|
TokenDAOTester() |
protected static final String TOKEN_KEY
protected static final long DIRECTORY_ID
protected static final long RANDOM_NUMBER
protected static final Long TOKEN_ID
protected static final String TOKEN1_ID_HASH
protected static final String TOKEN2_ID_HASH
protected static final String TOKEN3_ID_HASH
public final org.hamcrest.junit.ExpectedException expectedException
public void testAddWithDuplicateIdentifierHash() throws Exception
Exception
public void testRemoveByName()
public void testSearch() throws PersistenceException
PersistenceException
public void testSearchForPrincipalTokensByDirectoryId() throws Exception
Exception
public void testSearchForApplicationTokens() throws Exception
Exception
public void testSearchForPrincipalTokenByName() throws Exception
Exception
public void testSearchByLastAccessedTime() throws Exception
Exception
public void testSearchWithIndexConstraints()
public void testSearchWithIndexConstraintsSkippingTheFirstResult()
public void testSearchForTokenBySecretNumber()
public void testSearchForSecretNumberWhereSecretNumberIsEmpty() throws Exception
Exception
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 abstract TokenDAO getTokenDAO()
Copyright © 2016 Atlassian. All rights reserved.