@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 UserDaoCRUDTest extends Object
UserDao
. For convenience, the tests
of this interface have been split into multiple test classes.UserDaoSearchTest
,
UserDAOHibernateTest
Constructor and Description |
---|
UserDaoCRUDTest() |
public void fixHiLo()
public void testFindByMixedCaseNameExactMatch() throws Exception
Exception
public void testFindByMixedCaseNameCaseInsensitiveMatch() throws Exception
Exception
public void testFindByNameWhereUserDoesNotExist() throws Exception
Exception
public void testFindByNameWithAttributes() throws Exception
Exception
public void testFindByNameWithAttributesWhereUserDoesNotExist() throws Exception
Exception
public void testGetCredential() throws UserNotFoundException
UserNotFoundException
public void testGetCredentialWhereUserDoesNotExist() throws Exception
Exception
public void testGetCredentialHistory() throws UserNotFoundException
UserNotFoundException
public void testGetCredentialHistoryWhereUserDoesNotExist() throws Exception
Exception
public void testAddWithUnencryptedPassword() throws Exception
Exception
public void testAddExistingUserWithSameCaseUsername() throws Exception
Exception
public void testAddExistingUserWithDifferentCaseUsername() throws Exception
Exception
public void testUpdateShouldNotRenameUser() 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 testRenameToACompletelyDifferentName() throws Exception
Exception
public void testRenameWhenUsernameContainsMixedCase() throws Exception
Exception
public void testRenameWhenUserDoesNotExist() throws Exception
Exception
public void testRenameWhenThereIsANameClashWithAnotherUser() throws Exception
Exception
public void testRenameToExactlySameName() throws Exception
Exception
public void testRenameWhenOnlyCaseChanges() 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 void storeEmptyMapOfAttributesLeavesExistingAttributesUnaffected() throws UserNotFoundException
UserNotFoundException
public void storeMapWithEmptySetOfValuesRemovesAttributes() throws UserNotFoundException
UserNotFoundException
public void storeAtributesAddsNewNonEmptySets() throws UserNotFoundException
UserNotFoundException
Copyright © 2016 Atlassian. All rights reserved.