public class UserDaoCRUDTest extends BaseSpringTestCase
UserDao
. For convenience, the tests
of this interface have been split into multiple test classes.UserDaoSearchTest
,
UserDAOHibernateTest
jdbcTemplate
transactionDefinition, transactionManager, transactionStatus
AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO
Constructor and Description |
---|
UserDaoCRUDTest() |
flush, getConfigLocations, newTransactionForBatchOperations, onSetUpBeforeTransaction, setResetableHiLoGeneratorHelper
countRowsInTable, deleteFromTables, executeSqlScript, getJdbcTemplate, setComplete, setDataSource, setSqlScriptEncoding
endTransaction, isDefaultRollback, isRollback, onSetUp, 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
public void testFindByMixedCaseNameExactMatch() throws Exception
Exception
public void testFindByMixedCaseNameCaseInsensitiveMatch() throws Exception
Exception
public void testFindByNameWhereUserDoesNotExist()
public void testFindByNameWithAttributes() throws Exception
Exception
public void testFindByNameWithAttributesWhereUserDoesNotExist()
public void testGetCredential() throws UserNotFoundException
UserNotFoundException
public void testGetCredentialWhereUserDoesNotExist()
public void testGetCredentialHistory() throws UserNotFoundException
UserNotFoundException
public void testGetCredentialHistoryWhereUserDoesNotExist()
public void testAddWithUnencryptedPassword() throws Exception
Exception
public void testAddExistingUserWithSameCaseUsername() throws Exception
Exception
public void testAddExistingUserWithDifferentCaseUsername() throws Exception
Exception
public void testUpdateWhenUserDoesNotExist() throws Exception
Exception
public void testUpdateCredentialChangesCredential() throws Exception
Exception
public void testUpdateCredentialAddsNewCredentialToCredentialHistory() throws Exception
Exception
public void testUpdateCredentialWhenCredentialHistoryIsFull() throws Exception
Exception
public void testUpdateCredentialPreservesReferentialIntegrity() throws Exception
Exception
public void testRenameWhenUserDoesNotExist() throws Exception
Exception
public void testRenameWhenThereIsANameClash() throws Exception
Exception
public void testRemoveMixedCaseInsensitive() throws Exception
Exception
public void testStoreAttributesWithUpdateAndInsertForExistingUser() throws Exception
Exception
public void testStoreAttributesForExistingMixedCaseUser() throws Exception
Exception
public void testStoreAttributesWithUpdateAndDeleteForExistingUser() throws Exception
Exception
public void testStoreSingleAttributeWithUpdateForExistingUser() throws Exception
Exception
public void testStoreAttributesWithUpdateForExistingUser() throws Exception
Exception
public void testStoreAttributesWhenUserDoesNotExist() throws Exception
Exception
public void testRemoveAttributeMixedCaseUser() throws Exception
Exception
public void testRemoveAttributeWhenUserDoesNotExist() throws Exception
Exception
public void testRemoveAttributeWhenAttributesDoesNotExist() throws Exception
Exception
public void testAddAll()
public void testAddAllWithErrorsAndDuplicates() throws Exception
Exception
public String getSampleDataFileName()
getSampleDataFileName
in class BaseSpringTestCase
public void setUserDAO(UserDao userDAO)
public void setMembershipDAO(MembershipDao membershipDAO)
Copyright © 2013 Atlassian. All Rights Reserved.