public class UserTest extends RhnBaseTestCase
| Constructor and Description |
|---|
UserTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp()
Called once per test method.
|
protected void |
tearDown()
Tears down the fixture, and closes the HibernateSession.
|
void |
testAddAddress()
Check to make sure we can add an Address to a User.
|
void |
testAuthenticateFail()
Test to make sure if the wrong password is passed
in that we actually fail the authenticate method
|
void |
testAuthenticateTrue()
Test to make sure that the authenticate method
functions properly.
|
void |
testBeanMethods() |
void |
testGetRoles() |
void |
testLookupSameUserTwice()
We are having a problem when you lookup a user, then an org, and then
a user again.
|
void |
testPamAuthenticationFails()
Check that PAM authentication does something.
|
void |
testServerPerms() |
void |
testSetLogin()
Test to make sure that we can set the login on a newly created
user.
|
void |
testSystemGroupMethods() |
assertContains, assertContains, assertContains, assertNotBefore, assertNotBefore, assertNotEmpty, assertNotEmpty, assertPropertyEquals, clearSession, commitAndCloseSession, createDirIfNotExists, disableLocalizationServiceLogging, enableLocalizationServiceLogging, flushAndEvict, getNow, reload, reloadassertEquals, 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, runBare, runTest, setName, toStringprotected void setUp()
throws java.lang.Exception
setUp in class RhnBaseTestCasejava.lang.Exception - if an error occurs during setup.protected void tearDown()
throws java.lang.Exception
tearDown in class RhnBaseTestCasejava.lang.ExceptionTestCase.tearDown(),
HibernateFactory.closeSession()public void testSetLogin()
public void testAuthenticateTrue()
throws java.lang.Exception
java.lang.Exception - something bad happenedpublic void testAuthenticateFail()
throws java.lang.Exception
java.lang.Exception - something bad happenedpublic void testLookupSameUserTwice()
throws java.lang.Exception
java.lang.Exception - something bad happenedpublic void testAddAddress()
throws java.lang.Exception
java.lang.Exception - something bad happenedpublic void testBeanMethods()
public void testSystemGroupMethods()
public void testGetRoles()
public void testPamAuthenticationFails()
testAuthenticateTrue()public void testServerPerms()
throws java.lang.Exception
java.lang.Exception