public class LdapDirectoryMappersWithRequiredAttributesTest extends BaseTest
Modifier and Type | Class and Description |
---|---|
static class |
LdapDirectoryMappersWithRequiredAttributesTest.DirectoryWithCustomAttributeMapper |
static class |
LdapDirectoryMappersWithRequiredAttributesTest.DirectoryWithCustomAttributeMapperThatRequestsAllFields |
static class |
LdapDirectoryMappersWithRequiredAttributesTest.DirectoryWithCustomAttributeMapperWithoutRequiredFields |
directory, directoryManager, sessionFactory
jdbcTemplate
transactionDefinition, transactionManager, transactionStatus
AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO
Constructor and Description |
---|
LdapDirectoryMappersWithRequiredAttributesTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
loadTestData()
Called before every test run to add data needed for test.
|
protected void |
removeTestData()
Called before loadTestData() AND after every test run to remove data added for test.
|
void |
testAttributesAreNotPresentWhenCustomAttributeMapperDoesNotDeclareThem() |
void |
testCustomAttributeIsNotPresentByDefault() |
void |
testRequiredAttributesArePresentForCustomAttributeMapper() |
void |
testRequiredAttributesArePresentForCustomAttributeMapperWhenAllAttributesAreRequested() |
addGroup, addGroup, addUser, addUser, buildGroup, buildUser, buildUser, configureDirectory, customizeBeanFactory, deleteFromTables, getConfigLocations, getDirectoryConfigFile, getRemoteDirectory, onSetUpBeforeTransaction, onSetUpInTransaction, onTearDown, removeGroup, removeRole, removeUser, setDirectoryConfigFile, setLdapPropertiesHelper, setSessionFactory, setupSpring
countRowsInTable, executeSqlScript, getJdbcTemplate, setComplete, setDataSource, setSqlScriptEncoding
endTransaction, isDefaultRollback, isRollback, onSetUp, onTearDownAfterTransaction, onTearDownInTransaction, preventTransaction, setDefaultRollback, setTransactionDefinition, setTransactionManager, startNewTransaction
getAutowireMode, injectDependencies, isDependencyCheck, isPopulateProtectedVariables, prepareTestInstance, setAutowireMode, setDependencyCheck, setPopulateProtectedVariables
contextKey, createApplicationContext, createBeanDefinitionReader, getApplicationContext, getConfigPath, getConfigPaths, getLoadCount, loadContext, loadContextLocations, prepareApplicationContext, setDirty, setUp, tearDown
addContext, contextKeyString, getContext, hasCachedContext, isContextKeyEmpty, setDirty
getDisabledTestCount, isDisabledInThisEnvironment, recordDisabled, runBare
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, toString
public LdapDirectoryMappersWithRequiredAttributesTest()
protected void loadTestData() throws Exception
BaseTest
loadTestData
in class BaseTest
Exception
protected void removeTestData()
BaseTest
removeTestData
in class BaseTest
public void testCustomAttributeIsNotPresentByDefault() throws Exception
Exception
public void testRequiredAttributesArePresentForCustomAttributeMapper() throws Exception
Exception
public void testAttributesAreNotPresentWhenCustomAttributeMapperDoesNotDeclareThem() throws Exception
Exception
Copyright © 2013 Atlassian. All Rights Reserved.