com.atlassian.crowd.acceptance.tests.persistence.dao.membership
Class MembershipDAOHibernateTest
java.lang.Object
com.atlassian.crowd.acceptance.tests.persistence.dao.membership.MembershipDAOHibernateTest
@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 MembershipDAOHibernateTest
- extends Object
This class tests MembershipDAOHibernate beyond the implementation of the
MembershipDao
interface. In particular, it tests methods that do not
exist in the interface, such as
MembershipDAOHibernate.removeGroupMembers(long, String)
.
Therefore, the tests in this class are implementation specific, and cannot be run against
other implementations of the 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:
MembershipDaoCRUDTest
,
MembershipDaoSearchTest
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MembershipDAOHibernateTest
public MembershipDAOHibernateTest()
loadTestData
@BeforeTransaction
public void loadTestData()
throws Exception
- Throws:
Exception
fixHiLo
public void fixHiLo()
testRemoveGroupMembers
public void testRemoveGroupMembers()
testRemoveGroupMemberships
public void testRemoveGroupMemberships()
testRemoveUserMemberships
public void testRemoveUserMemberships()
testRemoveAllRelationships
public void testRemoveAllRelationships()
testRemoveUserRelationships
public void testRemoveUserRelationships()
testRenameUserRelationships
public void testRenameUserRelationships()
testRenameGroupRelationships
public void testRenameGroupRelationships()
testAddAll
public void testAddAll()
throws Exception
- Throws:
Exception
testAddAllWithDuplicates
public void testAddAllWithDuplicates()
throws Exception
- Throws:
Exception
testSearchCallsCreateHibernateSearchQuery
public void testSearchCallsCreateHibernateSearchQuery()
Copyright © 2013 Atlassian. All Rights Reserved.