com.retek.component.promotion
Class PromotionTest

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

public class PromotionTest
extends RetekTestCase


Field Summary
 
Fields inherited from class com.retek.commons.util.RetekTestCase
BEGIN_PROFILING, END_PROFILING
 
Constructor Summary
PromotionTest(java.lang.String arg0)
           
 
Method Summary
 void doInitialSetUp()
           
 void doSetUp()
           
 void doTearDown()
           
 void testAddBenefit()
           
 void testAddDollarOffBenefitToPromotionRemovesPercentOffBenefits()
           
 void testAllPromotions()
           
 void testCreateGeneralServicePromotionWithAllServiceDetailTypes()
           
 void testCreateModifySubmit()
           
 void testCreateThresholdPromotionForPLCC()
           
 void testCreateUnsubmittedGeneralOrderPromotionWithOrderServiceAmountBenefit()
           
 void testCreateWithASourceCode()
           
 void testCreateWithNegativeDollarOffThrowsException()
           
 void testCreateWithNegativePercentOffThrowsException()
           
 void testCreateWithoutASourceCodeAndWithAnOfferCode()
           
 void testCreateWithoutASourceCodeAndWithASellingList()
           
 void testCreateWithoutASourceCodeAndWithTwoSellingLists()
           
 void testCreateWithOutASourceCodeThrowsException()
           
 void testCreateWithoutBannerThrowsException()
           
 void testCreateWithoutChannelThrowsException()
           
 void testCreateWithoutDescriptionThrowsException()
           
 void testCreateWithoutEndDateThrowsException()
           
 void testCreateWithoutPromotionBenefitThrowsException()
           
 void testCreateWithoutSepcifyingDollarOfOrPercentOffThrowsException()
           
 void testCreateWithoutStartDateThrowsException()
           
 void testCreateWithOver100PercentOffThrowsException()
           
 void testCreateWithTwoSourceCodes()
           
 void testEndDateLessThanStartDateThrowsException()
           
 void testModifyFromDollarOffToPercentOff()
           
 void testModifyFromDollarOffToPercentOffWithOutFillingPercentOff()
           
 void testModifyFromPercentOffToDollarOff()
           
 void testObjectMasterCreateAllKindsOfPromotions()
           
 void testOfferCodesRemoval()
           
 void testPromotionStartDateCouldBeBeforeTodaysDateWhenSystemDateChanges()
           
 void testPromotionStartDateCouldNotBeBeforeTodaysDate()
           
 void testPromotionStatus()
           
 void testRemoveBenefit()
           
 void testSetMismatchedClassBenefits()
           
 void testSourceCodesRemoval()
           
 void testStartDateLessThanTodayThrowsException()
           
 void testTenderTypeRemoval()
           
 
Methods inherited from class com.retek.commons.util.RetekTestCase
assertBusinessException, assertBusinessExceptionAttribute, assertContainsString, assertDateEqualsIgnoreTime, assertDateNotEqualsIgnoreTime, assertDateTimeEquals, assertEquals, assertEqualValuesDeep, assertEqualValuesDeep, assertEqualValuesDeep, assertFalse, assertFalse, assertNotEquals, assertNotNullAndEquals, assertNull, assertRetekEquals, assertStateEquals, assertStateNotEquals, assertXmlEquals, findDto, findDto, getContext, getReadBackContext, getReferences, getReferences, isOracleTestCase, resetSystemRDateToBusinessDay, runTest, setSecurityEncryption, setTaxSimulate, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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

PromotionTest

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

doInitialSetUp

public void doInitialSetUp()
                    throws java.lang.Exception
Specified by:
doInitialSetUp in class RetekTestCase
Throws:
java.lang.Exception

doSetUp

public void doSetUp()
             throws java.lang.Exception
Specified by:
doSetUp in class RetekTestCase
Throws:
java.lang.Exception

doTearDown

public void doTearDown()
                throws java.lang.Exception
Specified by:
doTearDown in class RetekTestCase
Throws:
java.lang.Exception

testCreateModifySubmit

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

testCreateWithoutBannerThrowsException

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

testCreateWithoutPromotionBenefitThrowsException

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

testCreateWithoutSepcifyingDollarOfOrPercentOffThrowsException

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

testCreateWithNegativeDollarOffThrowsException

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

testCreateWithNegativePercentOffThrowsException

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

testCreateWithOver100PercentOffThrowsException

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

testCreateWithoutChannelThrowsException

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

testCreateWithoutStartDateThrowsException

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

testCreateWithoutEndDateThrowsException

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

testCreateWithoutDescriptionThrowsException

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

testPromotionStatus

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

testAllPromotions

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

testEndDateLessThanStartDateThrowsException

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

testStartDateLessThanTodayThrowsException

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

testPromotionStartDateCouldBeBeforeTodaysDateWhenSystemDateChanges

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

testPromotionStartDateCouldNotBeBeforeTodaysDate

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

testCreateWithASourceCode

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

testCreateWithoutASourceCodeAndWithAnOfferCode

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

testCreateWithoutASourceCodeAndWithASellingList

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

testCreateWithoutASourceCodeAndWithTwoSellingLists

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

testCreateWithTwoSourceCodes

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

testSourceCodesRemoval

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

testTenderTypeRemoval

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

testOfferCodesRemoval

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

testCreateWithOutASourceCodeThrowsException

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

testModifyFromPercentOffToDollarOff

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

testModifyFromDollarOffToPercentOff

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

testModifyFromDollarOffToPercentOffWithOutFillingPercentOff

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

testObjectMasterCreateAllKindsOfPromotions

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

testCreateGeneralServicePromotionWithAllServiceDetailTypes

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

testAddDollarOffBenefitToPromotionRemovesPercentOffBenefits

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

testCreateUnsubmittedGeneralOrderPromotionWithOrderServiceAmountBenefit

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

testSetMismatchedClassBenefits

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

testAddBenefit

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

testRemoveBenefit

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

testCreateThresholdPromotionForPLCC

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


Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28