com.redhat.rhn.domain.token.test
Class ActivationKeyTest
java.lang.Object
TestCase
com.redhat.rhn.testing.RhnBaseTestCase
com.redhat.rhn.testing.BaseTestCaseWithUser
com.redhat.rhn.domain.token.test.ActivationKeyTest
public class ActivationKeyTest
- extends BaseTestCaseWithUser
ActivationKeyTest
| Methods inherited from class com.redhat.rhn.testing.RhnBaseTestCase |
assertContains, assertContains, assertContains, assertNotBefore, assertNotBefore, assertNotEmpty, assertNotEmpty, assertPropertyEquals, clearSession, commitAndCloseSession, disableLocalizationServiceLogging, enableLocalizationServiceLogging, flushAndEvict, getNow, reload, reload |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActivationKeyTest
public ActivationKeyTest()
setUp
public void setUp()
throws java.lang.Exception
- Description copied from class:
BaseTestCaseWithUser
- Called once per test method.
- Overrides:
setUp in class BaseTestCaseWithUser
- Throws:
java.lang.Exception - if an error occurs during setup.
testKeyGeneration
public void testKeyGeneration()
throws java.lang.Exception
- Throws:
java.lang.Exception
testLookupBySession
public void testLookupBySession()
throws java.lang.Exception
- Throws:
java.lang.Exception
testNullServer
public void testNullServer()
throws java.lang.Exception
- Throws:
java.lang.Exception
testCreateWithCustomGroups
public void testCreateWithCustomGroups()
throws java.lang.Exception
- Throws:
java.lang.Exception
testAddGetKeys
public void testAddGetKeys()
throws java.lang.Exception
- Throws:
java.lang.Exception
testLookupByServer
public void testLookupByServer()
throws java.lang.Exception
- Throws:
java.lang.Exception
testCreateNewKeys
public void testCreateNewKeys()
throws java.lang.Exception
- Throws:
java.lang.Exception
createTestActivationKey
public static ActivationKey createTestActivationKey(User user)
throws java.lang.Exception
- Throws:
java.lang.Exception
createTestActivationKey
public static ActivationKey createTestActivationKey(User u,
Server s)
testDuplicateKeyCreation
public void testDuplicateKeyCreation()
throws java.lang.Exception
- Throws:
java.lang.Exception