com.retek.component.promotion
Class PromotionThresholdTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.retek.commons.util.RetekTestCase
              extended bycom.retek.component.promotion.PromotionApiTestCase
                  extended bycom.retek.component.promotion.PromotionThresholdTest
All Implemented Interfaces:
junit.framework.Test

public class PromotionThresholdTest
extends PromotionApiTestCase


Field Summary
 
Fields inherited from class com.retek.component.promotion.PromotionApiTestCase
user
 
Fields inherited from class com.retek.commons.util.RetekTestCase
BEGIN_PROFILING, END_PROFILING
 
Constructor Summary
PromotionThresholdTest(java.lang.String arg0)
           
 
Method Summary
 void doSetUp()
           
 void doTearDown()
           
 void testAddItemBenefitToPromotionRemovesNonItemBenefits()
           
 void testAddMismatchedClassBenefitsThrowException()
           
 void testAddMismatchedClassThresholdsThrowException()
           
 void testAddMismatchedDollarOffPercentOffBenefitsThrowException()
           
 void testAddMultipleItemBenefits()
           
 void testCreateGeneralOrderPromotion()
           
 void testCreateItemBenefitWithoutItemThrowsException()
           
 void testCreateItemBenefitWithSellingItemBenefit()
           
 void testCreateItemBenefitWithSellingSkuBenefit()
           
 void testCreateItemCurrencyAmountThresholdWithDollarOffItemMerchBenefit()
           
 void testCreateItemCurrencyAmountThresholdWithOrderMerchBenefitThrowException()
           
 void testCreateItemCurrencyAmountThresholdWithOrderServiceAmountBenefitThrowException()
           
 void testCreateItemCurrencyAmountThresholdWithPackBenefit()
           
 void testCreateItemCurrencyAmountThresholdWithPercentOffItemMerchBenefit()
           
 void testCreateItemCurrencyAmountThresholdWithSellingItemBenefit()
           
 void testCreateItemCurrencyAmountThresholdWithSellingSkuBenefit()
           
 void testCreateItemCurrencyAmountThresholdWithSkuBenefit()
           
 void testCreateItemCurrencyAmountThresholdWithStyleBenefit()
           
 void testCreateItemQuantityThresholdWithDollarOffGiftCertificateBenefit()
           
 void testCreateItemQuantityThresholdWithDollarOffItemMerchBenefit()
           
 void testCreateItemQuantityThresholdWithPackBenefit()
           
 void testCreateItemQuantityThresholdWithPercentOffItemMerchBenefit()
           
 void testCreateItemQuantityThresholdWithSellingItemBenefit()
           
 void testCreateItemQuantityThresholdWithSellingSkuBenefit()
           
 void testCreateItemQuantityThresholdWithSkuBenefit()
           
 void testCreateItemQuantityThresholdWithStyleBenefit()
           
 void testCreateOrderCurrencyAmountThresholdWithDollarOffGiftCertificateBenefit()
           
 void testCreateOrderCurrencyAmountThresholdWithDollarOffItemBenefit()
           
 void testCreateOrderCurrencyAmountThresholdWithDollarOffOrderMerchAmountBenefit()
           
 void testCreateOrderCurrencyAmountThresholdWithOrderServiceAmountBenefitThrowException()
           
 void testCreateOrderCurrencyAmountThresholdWithPercentOffGifCertificateBenefit()
           
 void testCreateOrderCurrencyAmountThresholdWithPercentOffOItemBenefit()
           
 void testCreateOrderCurrencyAmountThresholdWithPercentOffOrderMerchAmountBenefit()
           
 void testCreateOrderCurrencyThresholdWithUnspecifiedDollarOrPercentOffOrderMerchAmtBenefitThrowException()
           
 void testCreateOrderQuantityThresholdWithDollarOffGiftCertificateBenefit()
           
 void testCreateOrderQuantityThresholdWithDollarOffItemBenefit()
           
 void testCreateOrderQuantityThresholdWithDollarOffOrderMerchAmountBenefit()
           
 void testCreateOrderQuantityThresholdWithPercentOffGiftCertificateBenefit()
           
 void testCreateOrderQuantityThresholdWithPercentOffItemBenefit()
           
 void testCreateOrderQuantityThresholdWithPercentOffOrderMerchAmountBenefit()
           
 void testCreatePromotionThresholds()
           
 void testCreateThresholdPromotionWithoutPromotionBenefitThrowsException()
           
 void testCreateUnsubmittedGeneralOrderPromotionWithoutBenefit()
           
 void testCreateUnsubmittedThresholdOrderPromotionWithoutBenefit()
           
 void testCreateUnsubmittedThresholdPromotionWithItemBenefit()
           
 void testCreateWithGiftCertificateBenefitThrowException()
           
 void testCreateWithGiftCertificateBenefitWithNoOrZeroAmountThrowsException()
           
 void testFindThresholdPromotionsBySearchCriteria()
           
 void testGetItemDisplayCodeAndDescriptionForThresholdableItems()
           
 void testModifyItemBenefitFromSellingItemToSellingSkuBenefit()
           
 void testModifyItemBenefitFromSellingSkuToSellingItemBenefit()
           
 void testModifyItemCurrencyAmountThresholdToOrderQuantityThreshold()
           
 void testModifyItemThresholdFromSellingSkuToSellingItemBenefit()
           
 void testModifyItemThresholdFromSellingSkuToStyleBenefit()
           
 void testModifyThresholdFromOrderCurrencyAmountThresholdToOrderQuantityThreshold()
           
 
Methods inherited from class com.retek.commons.util.RetekTestCase
assertBusinessException, assertBusinessExceptionAttribute, assertContainsString, assertDateEqualsIgnoreTime, assertDateNotEqualsIgnoreTime, assertDateTimeEquals, assertEquals, assertEqualValuesDeep, assertEqualValuesDeep, assertEqualValuesDeep, assertNotEquals, assertNotNullAndEquals, assertNull, assertRetekEquals, assertRibException, assertSize, assertStateEquals, assertStateEquals, assertStateNotEquals, assertStateNotEquals, assertXmlEquals, doClassSetUp, doInitialSetUp, doPackageSetUp, findDto, findDto, getContext, getReadBackContext, getReferences, getReferences, isOracleTestCase, resetSystemRDateToBusinessDay, run, runTest, setSecurityEncryption, setTaxSimulate, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, 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, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PromotionThresholdTest

public PromotionThresholdTest(java.lang.String arg0)
Method Detail

doSetUp

public void doSetUp()
             throws java.lang.Exception
Overrides:
doSetUp in class PromotionApiTestCase
Throws:
java.lang.Exception

doTearDown

public void doTearDown()
                throws java.lang.Exception
Overrides:
doTearDown in class PromotionApiTestCase
Throws:
java.lang.Exception

testCreatePromotionThresholds

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

testCreateGeneralOrderPromotion

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

testCreateUnsubmittedGeneralOrderPromotionWithoutBenefit

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

testCreateUnsubmittedThresholdOrderPromotionWithoutBenefit

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

testCreateOrderCurrencyAmountThresholdWithOrderServiceAmountBenefitThrowException

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

testCreateUnsubmittedThresholdPromotionWithItemBenefit

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

testCreateOrderCurrencyThresholdWithUnspecifiedDollarOrPercentOffOrderMerchAmtBenefitThrowException

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

testCreateWithGiftCertificateBenefitWithNoOrZeroAmountThrowsException

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

testCreateWithGiftCertificateBenefitThrowException

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

testCreateThresholdPromotionWithoutPromotionBenefitThrowsException

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

testCreateOrderCurrencyAmountThresholdWithDollarOffOrderMerchAmountBenefit

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

testCreateOrderCurrencyAmountThresholdWithPercentOffOrderMerchAmountBenefit

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

testCreateOrderQuantityThresholdWithDollarOffOrderMerchAmountBenefit

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

testCreateOrderQuantityThresholdWithPercentOffOrderMerchAmountBenefit

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

testCreateItemBenefitWithoutItemThrowsException

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

testCreateItemBenefitWithSellingItemBenefit

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

testCreateItemBenefitWithSellingSkuBenefit

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

testModifyItemBenefitFromSellingSkuToSellingItemBenefit

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

testModifyItemBenefitFromSellingItemToSellingSkuBenefit

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

testModifyThresholdFromOrderCurrencyAmountThresholdToOrderQuantityThreshold

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

testAddMultipleItemBenefits

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

testAddItemBenefitToPromotionRemovesNonItemBenefits

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

testAddMismatchedClassBenefitsThrowException

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

testAddMismatchedDollarOffPercentOffBenefitsThrowException

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

testAddMismatchedClassThresholdsThrowException

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

testCreateOrderCurrencyAmountThresholdWithDollarOffItemBenefit

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

testCreateOrderCurrencyAmountThresholdWithPercentOffOItemBenefit

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

testCreateOrderQuantityThresholdWithDollarOffItemBenefit

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

testCreateOrderQuantityThresholdWithPercentOffItemBenefit

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

testCreateOrderCurrencyAmountThresholdWithDollarOffGiftCertificateBenefit

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

testCreateOrderCurrencyAmountThresholdWithPercentOffGifCertificateBenefit

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

testCreateOrderQuantityThresholdWithDollarOffGiftCertificateBenefit

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

testCreateOrderQuantityThresholdWithPercentOffGiftCertificateBenefit

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

testCreateItemQuantityThresholdWithSellingItemBenefit

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

testCreateItemQuantityThresholdWithSellingSkuBenefit

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

testCreateItemQuantityThresholdWithStyleBenefit

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

testCreateItemQuantityThresholdWithSkuBenefit

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

testCreateItemQuantityThresholdWithPackBenefit

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

testCreateItemCurrencyAmountThresholdWithSellingItemBenefit

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

testCreateItemCurrencyAmountThresholdWithSellingSkuBenefit

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

testCreateItemCurrencyAmountThresholdWithStyleBenefit

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

testCreateItemCurrencyAmountThresholdWithSkuBenefit

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

testCreateItemCurrencyAmountThresholdWithPackBenefit

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

testCreateItemQuantityThresholdWithDollarOffGiftCertificateBenefit

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

testFindThresholdPromotionsBySearchCriteria

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

testModifyItemThresholdFromSellingSkuToSellingItemBenefit

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

testModifyItemThresholdFromSellingSkuToStyleBenefit

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

testModifyItemCurrencyAmountThresholdToOrderQuantityThreshold

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

testCreateItemCurrencyAmountThresholdWithOrderMerchBenefitThrowException

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

testCreateItemCurrencyAmountThresholdWithOrderServiceAmountBenefitThrowException

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

testCreateItemCurrencyAmountThresholdWithDollarOffItemMerchBenefit

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

testCreateItemCurrencyAmountThresholdWithPercentOffItemMerchBenefit

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

testCreateItemQuantityThresholdWithDollarOffItemMerchBenefit

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

testCreateItemQuantityThresholdWithPercentOffItemMerchBenefit

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

testGetItemDisplayCodeAndDescriptionForThresholdableItems

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


Copyright © 2005 Retek Inc. All Rights Reserved. - Generated at Fri, 01/21/2005 14:25