com.atlassian.crowd.acceptance.tests.persistence.dao.user
Class UserDAOHibernateTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.springframework.test.ConditionalTestCase
org.springframework.test.AbstractSpringContextTests
org.springframework.test.AbstractSingleSpringContextTests
org.springframework.test.AbstractDependencyInjectionSpringContextTests
org.springframework.test.AbstractTransactionalSpringContextTests
org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
com.atlassian.crowd.acceptance.tests.persistence.BaseSpringTestCase
com.atlassian.crowd.acceptance.tests.persistence.dao.user.UserDAOHibernateTest
- All Implemented Interfaces:
- junit.framework.Test
public class UserDAOHibernateTest
- extends BaseSpringTestCase
Fields inherited from class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests |
jdbcTemplate |
Fields inherited from class org.springframework.test.AbstractTransactionalSpringContextTests |
transactionDefinition, transactionManager, transactionStatus |
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 |
Methods inherited from class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests |
countRowsInTable, deleteFromTables, executeSqlScript, getJdbcTemplate, setComplete, setDataSource, setSqlScriptEncoding |
Methods inherited from class org.springframework.test.AbstractTransactionalSpringContextTests |
endTransaction, isDefaultRollback, isRollback, onSetUpInTransaction, onTearDown, onTearDownAfterTransaction, onTearDownInTransaction, preventTransaction, setDefaultRollback, setTransactionDefinition, setTransactionManager, startNewTransaction |
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, customizeBeanFactory, 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 |
UserDAOHibernateTest
public UserDAOHibernateTest()
testFindByName
public void testFindByName()
throws Exception
- Throws:
Exception
testFindByMixedCaseNameExactMatch
public void testFindByMixedCaseNameExactMatch()
throws Exception
- Throws:
Exception
testFindByMixedCaseNameCaseInsensitiveMatch
public void testFindByMixedCaseNameCaseInsensitiveMatch()
throws Exception
- Throws:
Exception
testFindByNameWhereUserDoesNotExist
public void testFindByNameWhereUserDoesNotExist()
testFindByNameWithAttributes
public void testFindByNameWithAttributes()
throws Exception
- Throws:
Exception
testAddMixedCaseName
public void testAddMixedCaseName()
throws Exception
- Throws:
Exception
testAdd
public void testAdd()
throws Exception
- Throws:
Exception
testAddNull
public void testAddNull()
throws Exception
- Throws:
Exception
testAddExistingUserWithDifferentCaseUsername
public void testAddExistingUserWithDifferentCaseUsername()
throws Exception
- Throws:
Exception
testUpdate
public void testUpdate()
throws Exception
- Throws:
Exception
testUpdatePassword
public void testUpdatePassword()
throws Exception
- Throws:
Exception
testRename
public void testRename()
throws Exception
- Throws:
Exception
testRenameMixedCase
public void testRenameMixedCase()
throws Exception
- Throws:
Exception
testRemove
public void testRemove()
throws Exception
- Throws:
Exception
testRemoveMixedCaseInsensitive
public void testRemoveMixedCaseInsensitive()
throws Exception
- Throws:
Exception
testRemoveAll
public void testRemoveAll()
testStoreAttributesWithInsertForNewUser
public void testStoreAttributesWithInsertForNewUser()
throws Exception
- Throws:
Exception
testStoreAttributesWithUpdateAndInsertForExistingUser
public void testStoreAttributesWithUpdateAndInsertForExistingUser()
throws Exception
- Throws:
Exception
testStoreAttributesForExistingMixedCaseUser
public void testStoreAttributesForExistingMixedCaseUser()
throws Exception
- Throws:
Exception
testStoreAttributesWithUpdateAndDeleteForExistingUser
public void testStoreAttributesWithUpdateAndDeleteForExistingUser()
throws Exception
- Throws:
Exception
testStoreSingleAttributeWithUpdateForExistingUser
public void testStoreSingleAttributeWithUpdateForExistingUser()
throws Exception
- Throws:
Exception
testStoreAttributesWithUpdateForExistingUser
public void testStoreAttributesWithUpdateForExistingUser()
throws Exception
- Throws:
Exception
testRemoveAttribute
public void testRemoveAttribute()
throws Exception
- Throws:
Exception
testRemoveAttributeMixedCaseUser
public void testRemoveAttributeMixedCaseUser()
throws Exception
- Throws:
Exception
testSearchAllUserNames
public void testSearchAllUserNames()
testSearchUsernameStartsWith
public void testSearchUsernameStartsWith()
throws Exception
- Throws:
Exception
testSearchEmailContains
public void testSearchEmailContains()
throws Exception
- Throws:
Exception
testSearchFirstNameExact
public void testSearchFirstNameExact()
throws Exception
- Throws:
Exception
testSearchLastNameStartsWith
public void testSearchLastNameStartsWith()
throws Exception
- Throws:
Exception
testSearchLastNameStartsWithUsingBuilder
public void testSearchLastNameStartsWithUsingBuilder()
throws Exception
- Throws:
Exception
testSearchForActiveUsersUsingBuilder
public void testSearchForActiveUsersUsingBuilder()
throws Exception
- Throws:
Exception
testSearchForInactiveUsersUsingBuilder
public void testSearchForInactiveUsersUsingBuilder()
throws Exception
- Throws:
Exception
testSearchDisplayNameContains
public void testSearchDisplayNameContains()
throws Exception
- Throws:
Exception
testSearchColorExact
public void testSearchColorExact()
throws Exception
- Throws:
Exception
testSearchColorNoResults
public void testSearchColorNoResults()
throws Exception
- Throws:
Exception
testSearchNullCustomAttribute
public void testSearchNullCustomAttribute()
testSearchPrimaryAttributeAndNullCustomAttribute
public void testSearchPrimaryAttributeAndNullCustomAttribute()
testSearchMultipleNullValues
public void testSearchMultipleNullValues()
testSearchFirstClassDisjunction
public void testSearchFirstClassDisjunction()
throws Exception
- Throws:
Exception
testSearchFirstClassConjunction
public void testSearchFirstClassConjunction()
throws Exception
- Throws:
Exception
testSearchSecondClassDisjuction
public void testSearchSecondClassDisjuction()
throws Exception
- Throws:
Exception
testSearchSecondClassConjunction
public void testSearchSecondClassConjunction()
throws Exception
- Throws:
Exception
testSearchMixedClassDisjunction
public void testSearchMixedClassDisjunction()
throws Exception
- Throws:
Exception
testSearchMixedClassConjunction
public void testSearchMixedClassConjunction()
throws Exception
- Throws:
Exception
testSearchNested
public void testSearchNested()
testSearchNestedCustomNullAttributes
public void testSearchNestedCustomNullAttributes()
testSearchMixedCaseUsername
public void testSearchMixedCaseUsername()
testSearchMixedCaseUsernameAttributeMatch
public void testSearchMixedCaseUsernameAttributeMatch()
testAddAll
public void testAddAll()
testAddAllWithErrorsAndDuplicates
public void testAddAllWithErrorsAndDuplicates()
throws Exception
- Throws:
Exception
testFindByNames
public void testFindByNames()
getSampleDataFileName
public String getSampleDataFileName()
- Specified by:
getSampleDataFileName
in class BaseSpringTestCase
setUserDAO
public void setUserDAO(UserDAOHibernate userDAO)
setMembershipDAO
public void setMembershipDAO(MembershipDAOHibernate membershipDAO)
Copyright © 2012 Atlassian. All Rights Reserved.