com.redhat.rhn.frontend.xmlrpc.activationkey.test
Class ActivationKeyHandlerTest

java.lang.Object
  extended by TestCase
      extended by com.redhat.rhn.testing.RhnBaseTestCase
          extended by com.redhat.rhn.frontend.xmlrpc.test.BaseHandlerTestCase
              extended by com.redhat.rhn.frontend.xmlrpc.activationkey.test.ActivationKeyHandlerTest

public class ActivationKeyHandlerTest
extends BaseHandlerTestCase


Field Summary
 
Fields inherited from class com.redhat.rhn.frontend.xmlrpc.test.BaseHandlerTestCase
admin, adminKey, regular, regularKey
 
Constructor Summary
ActivationKeyHandlerTest()
           
 
Method Summary
 void setUp()
          Called once per test method.
 void testActivationKeyRoleEnforced()
           
 void testAddBaseChannelAsChild()
           
 void testAddChildChannel()
           
 void testAddChildChannelFromDifferentBase()
           
 void testAddNonExistentPackage()
           
 void testAddPackageName()
           
 void testAddPackageWithoutProvisioningEntitementFails()
           
 void testAddServerGroup()
           
 void testConfigChannels()
           
 void testCreateWithAutogeneratedKey()
           
 void testCreateWithBaseEntitlements()
           
 void testCreateWithBlankChannelAndUnlimitedUsageLimit()
           
 void testCreateWithChildChannel()
           
 void testCreateWithExplicitKey()
           
 void testCreateWithInvaidChannelId()
           
 void testCreateWithInvalidEntitlement()
           
 void testCreateWithSameKey()
           
 void testCreateWithZeroUsageLimit()
           
 void testGetDetails()
           
 void testListActivationKeys()
           
 void testReAddEntitlement()
           
 void testReAddServerGroup()
           
 void testRemove()
           
 void testRemoveAddOnEntitements()
           
 void testRemoveChildChannel()
           
 void testRemoveNonExistentAddOnEntitlement()
           
 void testRemovePackageName()
           
 void testRemoveProvisioningEntitementClearsPackages()
           
 void testRemoveServerGroup()
           
 void testRemoveServerGroupNotThere()
           
 void testRemoveUnappliedAddOnEntitements()
           
 void testSetAddOnEntitlement()
           
 void testSetDetailsUnlimitedUsage()
           
 void testSetNonAddOnEntitlement()
           
 void testSetNonExistentEntitlement()
           
 void testUpdateEverything()
           
 
Methods inherited from class com.redhat.rhn.frontend.xmlrpc.test.BaseHandlerTestCase
addRole
 
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, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivationKeyHandlerTest

public ActivationKeyHandlerTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Description copied from class: RhnBaseTestCase
Called once per test method.

Overrides:
setUp in class BaseHandlerTestCase
Throws:
java.lang.Exception - if an error occurs during setup.

testCreateWithAutogeneratedKey

public void testCreateWithAutogeneratedKey()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testCreateWithBlankChannelAndUnlimitedUsageLimit

public void testCreateWithBlankChannelAndUnlimitedUsageLimit()
                                                      throws java.lang.Exception
Throws:
java.lang.Exception

testCreateWithZeroUsageLimit

public void testCreateWithZeroUsageLimit()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testCreateWithExplicitKey

public void testCreateWithExplicitKey()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testCreateWithSameKey

public void testCreateWithSameKey()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testCreateWithInvaidChannelId

public void testCreateWithInvaidChannelId()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testCreateWithChildChannel

public void testCreateWithChildChannel()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testCreateWithBaseEntitlements

public void testCreateWithBaseEntitlements()

testCreateWithInvalidEntitlement

public void testCreateWithInvalidEntitlement()

testActivationKeyRoleEnforced

public void testActivationKeyRoleEnforced()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testUpdateEverything

public void testUpdateEverything()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testSetDetailsUnlimitedUsage

public void testSetDetailsUnlimitedUsage()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testGetDetails

public void testGetDetails()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testSetAddOnEntitlement

public void testSetAddOnEntitlement()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testSetNonExistentEntitlement

public void testSetNonExistentEntitlement()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testSetNonAddOnEntitlement

public void testSetNonAddOnEntitlement()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testReAddEntitlement

public void testReAddEntitlement()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testRemoveAddOnEntitements

public void testRemoveAddOnEntitements()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testRemoveUnappliedAddOnEntitements

public void testRemoveUnappliedAddOnEntitements()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

testRemoveNonExistentAddOnEntitlement

public void testRemoveNonExistentAddOnEntitlement()
                                           throws java.lang.Exception
Throws:
java.lang.Exception

testAddChildChannel

public void testAddChildChannel()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testAddBaseChannelAsChild

public void testAddBaseChannelAsChild()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testAddChildChannelFromDifferentBase

public void testAddChildChannelFromDifferentBase()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

testRemoveChildChannel

public void testRemoveChildChannel()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testAddServerGroup

public void testAddServerGroup()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testReAddServerGroup

public void testReAddServerGroup()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testRemoveServerGroup

public void testRemoveServerGroup()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testRemoveServerGroupNotThere

public void testRemoveServerGroupNotThere()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testAddPackageName

public void testAddPackageName()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testRemovePackageName

public void testRemovePackageName()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testAddNonExistentPackage

public void testAddNonExistentPackage()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testAddPackageWithoutProvisioningEntitementFails

public void testAddPackageWithoutProvisioningEntitementFails()
                                                      throws java.lang.Exception
Throws:
java.lang.Exception

testRemoveProvisioningEntitementClearsPackages

public void testRemoveProvisioningEntitementClearsPackages()
                                                    throws java.lang.Exception
Throws:
java.lang.Exception

testListActivationKeys

public void testListActivationKeys()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testConfigChannels

public void testConfigChannels()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testRemove

public void testRemove()