com.retek.component.customerorder
Class CustomerOrderPaymentTest

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.CustomerOrderPaymentTest
All Implemented Interfaces:
junit.framework.Test

public class CustomerOrderPaymentTest
extends CustomerOrderApiTestCase


Field Summary
 
Fields inherited from class com.retek.commons.util.RetekTestCase
BEGIN_PROFILING, END_PROFILING
 
Constructor Summary
CustomerOrderPaymentTest(java.lang.String name)
           
 
Method Summary
 void doSetUp()
           
 void doTearDown()
           
 void testAddNonApprovedPaymentToPendedOrderSubmitPersists()
           
 void testAddPaymentWithAmount()
           
 void testAddPaymentWithZeroAmount()
           
 void testAddRewardCertificateToOrderValidatesTenderType()
           
 void testAddSamePaymentToTwoOrders()
           
 void testAddTwoPayments()
           
 void testAddTwoPaymentsCancelOneAddAnother()
           
 void testAdujustPaymentForLineNoPayment()
           
 void testApplyPaymentLocksFields()
           
 void testCancelExchangeSaleGreaterThanReturnWithPhysicalTenderPaymentManApprovedReturnNotRequired()
           
 void testCancelExchangeSaleGreaterThanReturnWithPhysicalTenderPaymentManApprovedReturnRequired()
           
 void testCancelExchangeSaleSendsCreditCardRefund()
           
 void testCancelOrderCreatesAllRelevantPaymentHistory()
           
 void testCancelOrderLineOnOrderWithCCPaymentDecreasesCCAmount()
           
 void testCancelReturnLineCancelsReturnLineCreditPayment()
           
 void testCancelReturnLineLessThanExchangeSaleDecreasesCreditPayment()
           
 void testCCPaymentInApprovedIsCancelable()
           
 void testCCPaymentInCancelledIsNotCancelable()
           
 void testCCPaymentInFraudIsCancelable()
           
 void testCCPaymentInPreSettledIsNotCancelable()
           
 void testCCPaymentInSettledIsNotCancelable()
           
 void testCCPaymentInWaithForAuthStateIsCancelable()
           
 void testChangeReturnReasonToOneWhichRefundsLessDecreasesCreditPayment()
           
 void testCreatePLCCCreditCardPaymentWithOrderTotalGreaterThanCreditLimitThrowsException()
           
 void testCreateReturnLineCreatesRefundToCreditCard()
           
 void testCreditCardAmountIsAdjustable()
           
 void testCreditCardAmountIsModifiableInTransactionGroup()
           
 void testCreditCardPaymentExpiredExpirationDate()
           
 void testCreditCardPaymentMissingCardHolderName()
           
 void testCreditCardRefundPaymentValidForExpiredExpirationDate()
           
 void testCreditInMultipleStatesIsOrIsNotCancelable()
           
 void testDecreaseReturnLineQuantityDecreasesCreditPayment()
           
 void testGetAllPaymentsDoesNotIncludeExpiredRewardCertificates()
           
 void testInvalidCCPaymentNotAddedToOrder()
           
 void testMerchVoucherAmountIsAdjustable()
           
 void testNoMinAmountForMerchCreditSetForBannerAlwaysGivesMerchCardForCredit()
           
 void testNoMinAmountForMerchCreditSetForBannerAlwaysGivesMerchCertificateForCredit()
           
 void testOrderBalanceOnlyIncludesPaymentsWithApplicableStatus()
           
 void testOrderWithCCPaymentWaitingAuthCausesOrderToSystematicPend()
           
 void testPaymentAudit()
           
 void testPaymentValidation()
           
 void testPaymentValidationNullAmountThrowsException()
           
 void testPendOrderAddGiftCertPaymentSubmitPersists()
           
 void testPendOrderAddRefundPaymentSubmitPersists()
           
 void testPhysicalPaymentInApprovedIsCancelable()
           
 void testPhysicalPaymentInCancelledIsNotCancelable()
           
 void testPhysicalPaymentInPreSettledIsNotCancelable()
           
 void testPhysicalPaymentInSettledIsNotCancelable()
           
 void testPhysicalPaymentInWaithForAuthStateIsCancelable()
           
 void testRefundForCreditCardCannotExceedInitialCCPaymentAmount()
           
 void testReturnOnOrderWithCCPaymentGeneratesAMerchVoucherPayment()
           
 void testSalesAuditPaidInExportStateTransitions()
           
 void testSetInvalidCreditCardNumberToPayment()
           
 void testSplitGiftCertificatePaymentsCreatesSettledAndApprovedPayments()
           
 void testSplitPaymentComputesAuthAmountEqualToZeroWhereOriginalAuthAmountEqualsOneDollerAmount()
           
 void testSplitPaymentComputesAuthAmountWhereOriginalAuthAmountLessThanPaymentAmount()
           
 void testSubmitRequiresBalanceLessThanTolerance()
           
 
Methods inherited from class com.retek.component.customerorder.CustomerOrderApiTestCase
createCustomerOrderWithOneLineWithFullPayment, createCustomerOrderWithOneLineWithOutPayment, createOrderLines, createOrderLines, createOrderWithOneOrderline, getAndSubmitSupplier, getCustomerOrderLineStateModel, getCustomerOrderPaymentStateModel, getCustomerOrderStateModel, getReturnLineStateModel, getValidSourceCode
 
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

CustomerOrderPaymentTest

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

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

testInvalidCCPaymentNotAddedToOrder

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

testAdujustPaymentForLineNoPayment

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

testAddPaymentWithAmount

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

testAddSamePaymentToTwoOrders

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

testAddPaymentWithZeroAmount

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

testAddTwoPayments

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

testAddTwoPaymentsCancelOneAddAnother

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

testApplyPaymentLocksFields

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

testPaymentValidation

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

testPaymentValidationNullAmountThrowsException

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

testCreditCardRefundPaymentValidForExpiredExpirationDate

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

testSetInvalidCreditCardNumberToPayment

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

testCreditCardPaymentMissingCardHolderName

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

testCreditCardPaymentExpiredExpirationDate

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

testGetAllPaymentsDoesNotIncludeExpiredRewardCertificates

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

testOrderBalanceOnlyIncludesPaymentsWithApplicableStatus

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

testOrderWithCCPaymentWaitingAuthCausesOrderToSystematicPend

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

testCCPaymentInWaithForAuthStateIsCancelable

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

testCCPaymentInApprovedIsCancelable

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

testCCPaymentInCancelledIsNotCancelable

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

testCCPaymentInPreSettledIsNotCancelable

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

testCCPaymentInSettledIsNotCancelable

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

testPhysicalPaymentInApprovedIsCancelable

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

testPhysicalPaymentInCancelledIsNotCancelable

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

testPhysicalPaymentInPreSettledIsNotCancelable

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

testPhysicalPaymentInSettledIsNotCancelable

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

testPhysicalPaymentInWaithForAuthStateIsCancelable

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

testCreditInMultipleStatesIsOrIsNotCancelable

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

testSubmitRequiresBalanceLessThanTolerance

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

testCancelOrderCreatesAllRelevantPaymentHistory

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

testPaymentAudit

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

testPendOrderAddGiftCertPaymentSubmitPersists

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

testPendOrderAddRefundPaymentSubmitPersists

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

testAddNonApprovedPaymentToPendedOrderSubmitPersists

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

testSplitGiftCertificatePaymentsCreatesSettledAndApprovedPayments

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

testSalesAuditPaidInExportStateTransitions

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

testSplitPaymentComputesAuthAmountEqualToZeroWhereOriginalAuthAmountEqualsOneDollerAmount

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

testSplitPaymentComputesAuthAmountWhereOriginalAuthAmountLessThanPaymentAmount

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

testCreditCardAmountIsAdjustable

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

testMerchVoucherAmountIsAdjustable

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

testCreditCardAmountIsModifiableInTransactionGroup

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

testReturnOnOrderWithCCPaymentGeneratesAMerchVoucherPayment

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

testCancelOrderLineOnOrderWithCCPaymentDecreasesCCAmount

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

testCancelExchangeSaleGreaterThanReturnWithPhysicalTenderPaymentManApprovedReturnNotRequired

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

testCancelExchangeSaleGreaterThanReturnWithPhysicalTenderPaymentManApprovedReturnRequired

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

testDecreaseReturnLineQuantityDecreasesCreditPayment

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

testChangeReturnReasonToOneWhichRefundsLessDecreasesCreditPayment

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

testCancelReturnLineCancelsReturnLineCreditPayment

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

testCancelReturnLineLessThanExchangeSaleDecreasesCreditPayment

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

testRefundForCreditCardCannotExceedInitialCCPaymentAmount

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

testCreateReturnLineCreatesRefundToCreditCard

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

testCancelExchangeSaleSendsCreditCardRefund

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

testNoMinAmountForMerchCreditSetForBannerAlwaysGivesMerchCertificateForCredit

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

testNoMinAmountForMerchCreditSetForBannerAlwaysGivesMerchCardForCredit

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

testCreatePLCCCreditCardPaymentWithOrderTotalGreaterThanCreditLimitThrowsException

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

testAddRewardCertificateToOrderValidatesTenderType

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

testCCPaymentInFraudIsCancelable

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


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