@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 GroupDAOHibernateTest extends Object
GroupDao
interface. This includes tests for methods with a more concrete return type (e.g.,
InternalGroup
for the return of
GroupDAOHibernate.findByName(long, String)
, and also methods that do not
exist in the interface, such as GroupDAOHibernate.removeAll(long)
.
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.GroupDaoCRUDTest
,
GroupDaoSearchTest
Constructor and Description |
---|
GroupDAOHibernateTest() |
Modifier and Type | Method and Description |
---|---|
void |
fixHiLo() |
void |
loadTestData() |
void |
storedAttributesAreVisibleInInternalGroupWithinSameSession() |
void |
testAddAllUsers() |
void |
testAddAssignsAnId() |
void |
testAddLocalAssignsAnId() |
void |
testFindByMixedCaseNameWithAttributes() |
void |
testFindByNameMixedCase() |
void |
testFindByNameReturnsGroupWithLazyLoadedDirectory() |
void |
testFindByNames() |
void |
testRemoveAll() |
void |
testRemoveAllGroups() |
void |
testStoreAttributesWithInsertForNewGroup() |
void |
testStoreAttributesWithNewUser() |
public void fixHiLo()
public void testFindByNameReturnsGroupWithLazyLoadedDirectory() throws Exception
Exception
public void testFindByMixedCaseNameWithAttributes() throws Exception
Exception
public void testRemoveAll()
public void testRemoveAllGroups()
public void testStoreAttributesWithInsertForNewGroup() throws Exception
Exception
public void testStoreAttributesWithNewUser() throws Exception
Exception
public void testFindByNames()
Copyright © 2016 Atlassian. All rights reserved.