Package org.mycore.user2
Class MCRUserManagerTest
java.lang.Object
org.mycore.common.MCRTestCase
org.mycore.common.MCRJPATestCase
org.mycore.user2.MCRUserTestCase
org.mycore.user2.MCRUserManagerTest
- Author:
- Thomas Scheffler (yagee)
-
Field Summary
Fields inherited from class org.mycore.common.MCRTestCase
junitFolder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setUp()
initializes MCRConfiguration with an empty property file.final void
Test method buildCondition with user attribute name patternfinal void
final void
Test method forMCRUserManager.deleteUser(org.mycore.user2.MCRUser)
.final void
final void
Test method forMCRUserManager.exists(java.lang.String, org.mycore.user2.MCRRealm)
.final void
final void
final void
Test method forMCRUserManager.getUser(java.lang.String, org.mycore.user2.MCRRealm)
.final void
Test method forMCRUserManager.listUsers(org.mycore.user2.MCRUser)
.final void
final void
final void
Test method forMCRUserManager.login(java.lang.String, java.lang.String)
.final void
Test method forMCRUserManager.updateUser(org.mycore.user2.MCRUser)
.final void
toXML()
Methods inherited from class org.mycore.user2.MCRUserTestCase
getTestProperties
Methods inherited from class org.mycore.common.MCRJPATestCase
beginTransaction, dropSchema, endTransaction, exportSchema, getDefaultSchema, getEntityManager, printResultSet, startNewTransaction, tearDown
Methods inherited from class org.mycore.common.MCRTestCase
bzzz, getCurrentComponentName, getResourceAsStream, getResourceAsURL, initBaseDir, initProperties, isDebugEnabled
-
Constructor Details
-
MCRUserManagerTest
public MCRUserManagerTest()
-
-
Method Details
-
setUp
Description copied from class:MCRTestCase
initializes MCRConfiguration with an empty property file. This can be used to test MyCoRe classes without any propties set, using default. You may want to set Properties per TestCase with the set() method ofMCRConfiguration2
- Overrides:
setUp
in classMCRUserTestCase
- Throws:
Exception
- See Also:
-
testGetUserStringMCRRealm
public final void testGetUserStringMCRRealm()Test method forMCRUserManager.getUser(java.lang.String, org.mycore.user2.MCRRealm)
. -
testGetUsersByProperty
public final void testGetUsersByProperty() -
testGetUserPropertiesAfterGetUsers
public final void testGetUserPropertiesAfterGetUsers() -
testExistsStringMCRRealm
public final void testExistsStringMCRRealm()Test method forMCRUserManager.exists(java.lang.String, org.mycore.user2.MCRRealm)
. -
testUpdateUser
public final void testUpdateUser()Test method forMCRUserManager.updateUser(org.mycore.user2.MCRUser)
. -
testDeleteUserStringMCRRealm
public final void testDeleteUserStringMCRRealm() -
testDeleteUserMCRUser
public final void testDeleteUserMCRUser()Test method forMCRUserManager.deleteUser(org.mycore.user2.MCRUser)
. -
testListUsersMCRUser
public final void testListUsersMCRUser()Test method forMCRUserManager.listUsers(org.mycore.user2.MCRUser)
. -
testListUsersStringStringString
public final void testListUsersStringStringString() -
testConditionWithUserAttributeNamePattern
public final void testConditionWithUserAttributeNamePattern()Test method buildCondition with user attribute name pattern -
testCountUsers
public final void testCountUsers() -
testLogin
public final void testLogin()Test method forMCRUserManager.login(java.lang.String, java.lang.String)
. -
toXML
- Throws:
IOException
-
testLoadTestUser
public final void testLoadTestUser()
-