com.atlassian.crowd.acceptance.tests.persistence.dao.user
Class UserDAOHibernateTest
java.lang.Object
com.atlassian.crowd.acceptance.tests.persistence.dao.user.UserDAOHibernateTest
@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 UserDAOHibernateTest
- extends Object
This class tests UserDAOHibernate beyond the implementation of the UserDao
interface. This includes tests for
methods with a more concrete return type (e.g., InternalUser
for the return of UserDAOHibernate.findByName(long, String)
, and also methods that do not exist in the interface, such as UserDAOHibernate.removeAll(long)
. Therefore, the tests in this class are implementation specific, and cannot be run
against other implementations of the UserDao interface. The reason to have tests for the implementation (as opposed
to just testing the interface) is that some legacy code is coupled to the Hibernate implementation of the interface.
- See Also:
UserDaoCRUDTest
,
UserDaoSearchTest
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserDAOHibernateTest
public UserDAOHibernateTest()
loadTestData
@BeforeTransaction
public void loadTestData()
throws Exception
- Throws:
Exception
fixHiLo
public void fixHiLo()
testFindByNameReturnsUserWithLazyLoadedDirectory
public void testFindByNameReturnsUserWithLazyLoadedDirectory()
throws Exception
- Throws:
Exception
testFindByMixedCaseNameExactMatch
public void testFindByMixedCaseNameExactMatch()
throws Exception
- Throws:
Exception
testFindByMixedCaseNameCaseInsensitiveMatch
public void testFindByMixedCaseNameCaseInsensitiveMatch()
throws Exception
- Throws:
Exception
testExternalIdIsSet
public void testExternalIdIsSet()
throws Exception
- Throws:
Exception
testFindByExternalId
public void testFindByExternalId()
throws Exception
- Throws:
Exception
testFindByExternalIdIsCaseSensitive
public void testFindByExternalIdIsCaseSensitive()
throws Exception
- Throws:
Exception
testFindByExternalIdAcceptsNullExternalId
public void testFindByExternalIdAcceptsNullExternalId()
throws Exception
- Throws:
Exception
testPasswordCanBeChangedViaUpdate
public void testPasswordCanBeChangedViaUpdate()
throws Exception
- Throws:
Exception
testRenamedUserHasLowercaseName
public void testRenamedUserHasLowercaseName()
throws Exception
- Throws:
Exception
testRemoveAll
public void testRemoveAll()
testRemoveAllUsers
public void testRemoveAllUsers()
testAddAllUsers
public void testAddAllUsers()
testStoreAttributesWithInsertForNewUser
public void testStoreAttributesWithInsertForNewUser()
throws Exception
- Throws:
Exception
testFindByNames
public void testFindByNames()
Copyright © 2013 Atlassian. All Rights Reserved.