com.retek.component.customerorder
Class CustomerOrderOverpaymentTest

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

public class CustomerOrderOverpaymentTest
extends CustomerOrderApiTestCase


Field Summary
 
Fields inherited from class com.retek.commons.util.RetekTestCase
BEGIN_PROFILING, END_PROFILING
 
Constructor Summary
CustomerOrderOverpaymentTest(java.lang.String name)
           
 
Method Summary
 void doInitialSetUp()
           
 void doSetUp()
           
 void doTearDown()
           
 void testAddPaymentWithNegativeAmount()
           
 void testAllowOnlyGiftCertificatePaymentWhenBalanceIsZero()
           
 void testAuthorizationOfNegativePaymentIsAllowed()
           
 void testCashRefundPaymentNotAllowed()
           
 void testCheckPaymentPresettledOnOrderSubmit()
           
 void testCheckRefundPaymentAllowed()
           
 void testCreditCardOverpaymentNotAllowed()
           
 void testCreditCardOverpaymentOfNegativeBalanceNotAllowed()
           
 void testCreditCardRefundPaymentIsAllowed()
           
 void testCreditCardRefundPaymentSystemApproved()
           
 void testGenerateASecondRefundForOneCheckAndOneGiftCertificateOverpayment()
           
 void testGenerateASecondRefundForTwoDifferentCreditCardsAndOneGiftCertOverpayment()
           
 void testGenerateRefundForCheckOverpayment()
           
 void testGenerateRefundForCreditCardAndGiftCertOverpayment()
           
 void testGenerateRefundForGiftCertificateOverpayment()
           
 void testGenerateRefundForMerchVoucherOverpayment()
           
 void testGenerateRefundForOneCheckAndOneGiftCertificateOverpayment()
           
 void testGenerateRefundForTwoCheckOverpayment()
           
 void testGenerateRefundForTwoCreditCardPaymentsAndOneGiftCertOverpayment()
           
 void testGenerateRefundForTwoDifferentCreditCardsAndOneGiftCertOverpayment()
           
 void testGenerateRefundForTwoGiftCertificateOverpayment()
           
 void testGenerateRefundLessThanVoucherTolerance()
           
 void testGiftCertificateRefundPaymentNotAllowed()
           
 void testMerchRefundPaymentLessThanMinNotAllowed()
           
 void testMerchRefundPaymentPresettledOnOrderSubmit()
           
 void testMerchRefundPaymentSameAsMinAllowed()
           
 void testMerchRefundPaymentSystemApproved()
           
 void testMoneyRefundOrderPaymentNotAllowed()
           
 void testMultipleRefundPaymentsPresettledOnOrderSubmit()
           
 void testOverpaymentOfCheckSplitsCheckIfSubmittedBeforeManuallyApproved()
           
 void testPartialCreditCardPaymentOfNegativeBalanceAllowed()
           
 void testPaymentWithZeroOrderBalanceNotAllowed()
           
 void testTenderSwapForGiftCertificateOnClosedOrderGoesPreSettled()
           
 
Methods inherited from class com.retek.component.customerorder.CustomerOrderApiTestCase
createCustomerOrderWithOneLineWithFullPayment, createCustomerOrderWithOneLineWithOutPayment, createDirectShipOrder, createOrderLines, createOrderLines, getAndSubmitSupplier, getCustomerOrderLineStateModel, getCustomerOrderPaymentStateModel, getCustomerOrderStateModel, getReturnLineStateModel
 
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

CustomerOrderOverpaymentTest

public CustomerOrderOverpaymentTest(java.lang.String name)
Method Detail

doInitialSetUp

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

doSetUp

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

doTearDown

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

testAddPaymentWithNegativeAmount

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

testAuthorizationOfNegativePaymentIsAllowed

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

testMerchRefundPaymentLessThanMinNotAllowed

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

testMerchRefundPaymentSameAsMinAllowed

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

testGiftCertificateRefundPaymentNotAllowed

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

testCashRefundPaymentNotAllowed

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

testMoneyRefundOrderPaymentNotAllowed

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

testCheckRefundPaymentAllowed

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

testCheckPaymentPresettledOnOrderSubmit

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

testCreditCardRefundPaymentIsAllowed

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

testCreditCardOverpaymentNotAllowed

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

testPartialCreditCardPaymentOfNegativeBalanceAllowed

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

testCreditCardOverpaymentOfNegativeBalanceNotAllowed

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

testPaymentWithZeroOrderBalanceNotAllowed

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

testMerchRefundPaymentSystemApproved

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

testCreditCardRefundPaymentSystemApproved

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

testMerchRefundPaymentPresettledOnOrderSubmit

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

testMultipleRefundPaymentsPresettledOnOrderSubmit

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

testGenerateRefundForMerchVoucherOverpayment

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

testGenerateRefundForGiftCertificateOverpayment

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

testGenerateRefundForTwoGiftCertificateOverpayment

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

testGenerateRefundLessThanVoucherTolerance

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

testGenerateRefundForTwoCheckOverpayment

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

testGenerateRefundForOneCheckAndOneGiftCertificateOverpayment

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

testGenerateRefundForCheckOverpayment

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

testGenerateASecondRefundForOneCheckAndOneGiftCertificateOverpayment

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

testGenerateRefundForCreditCardAndGiftCertOverpayment

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

testGenerateRefundForTwoCreditCardPaymentsAndOneGiftCertOverpayment

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

testGenerateRefundForTwoDifferentCreditCardsAndOneGiftCertOverpayment

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

testGenerateASecondRefundForTwoDifferentCreditCardsAndOneGiftCertOverpayment

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

testOverpaymentOfCheckSplitsCheckIfSubmittedBeforeManuallyApproved

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

testAllowOnlyGiftCertificatePaymentWhenBalanceIsZero

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

testTenderSwapForGiftCertificateOnClosedOrderGoesPreSettled

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


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