@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
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.MembershipDaoCRUDTest
,
MembershipDaoSearchTest
Constructor and Description |
---|
MembershipDAOHibernateTest() |
Modifier and Type | Method and Description |
---|---|
void |
fixHiLo() |
void |
loadTestData() |
void |
testAddAll() |
void |
testAddAllWithDuplicates() |
void |
testRemoveAllRelationships() |
void |
testRemoveGroupMembers() |
void |
testRemoveGroupMemberships() |
void |
testRemoveUserMemberships() |
void |
testRemoveUserRelationships() |
void |
testRenameGroupRelationships() |
void |
testRenameUserRelationships() |
void |
testSearchCallsCreateHibernateSearchQuery() |
public void fixHiLo()
public void testRemoveGroupMembers()
public void testRemoveGroupMemberships()
public void testRemoveUserMemberships()
public void testRemoveAllRelationships()
public void testRemoveUserRelationships()
public void testRenameUserRelationships()
public void testRenameGroupRelationships()
public void testSearchCallsCreateHibernateSearchQuery()
Copyright © 2016 Atlassian. All rights reserved.