com.redhat.rhn.domain.token.test
Class ActivationKeyTest

java.lang.Object
  extended by TestCase
      extended by com.redhat.rhn.testing.RhnBaseTestCase
          extended by com.redhat.rhn.testing.BaseTestCaseWithUser
              extended by com.redhat.rhn.domain.token.test.ActivationKeyTest

public class ActivationKeyTest
extends BaseTestCaseWithUser

ActivationKeyTest


Field Summary
 
Fields inherited from class com.redhat.rhn.testing.BaseTestCaseWithUser
user
 
Constructor Summary
ActivationKeyTest()
           
 
Method Summary
static ActivationKey createTestActivationKey(User user)
           
static ActivationKey createTestActivationKey(User u, Server s)
           
 void setUp()
          Called once per test method.
 void testAddGetKeys()
           
 void testCreateNewKeys()
           
 void testCreateWithCustomGroups()
           
 void testDuplicateKeyCreation()
           
 void testKeyGeneration()
           
 void testLookupByServer()
           
 void testLookupBySession()
           
 void testNullServer()
           
 
Methods inherited from class com.redhat.rhn.testing.BaseTestCaseWithUser
tearDown
 
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
 

Constructor Detail

ActivationKeyTest

public ActivationKeyTest()
Method Detail

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