com.retek.component.customerorder
Class MailOrderBatchTest

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

public class MailOrderBatchTest
extends CustomerOrderApiTestCase


Field Summary
 
Fields inherited from class com.retek.commons.util.RetekTestCase
BEGIN_PROFILING, END_PROFILING
 
Constructor Summary
MailOrderBatchTest(java.lang.String name)
           
 
Method Summary
 void doSetUp()
           
 void doTearDown()
           
 void testAddOrderToMailOrderBatchPend()
           
 void testAddOrderToMailOrderBatchSubmit()
           
 void testAddOrderToMailOrderBatchSubmitBatchFailsDoesNotSaveOrder()
           
 void testAddOrderToMailOrderBatchWithDifferentBannerFails()
           
 void testAddOrderToNullMailOrderBatchSubmit()
           
 void testBatchIsReleasableForNonPhysicalTender()
           
 void testBatchIsReleasableForPhysicalTender()
           
 void testCannotAddMailOrderToReleasedBatch()
           
 void testCreateMailOrderBatch()
           
 void testDirectShipMailOrderGetsPersonalizationServices()
           
 void testExpectedTenderAmountReceivedRequired()
           
 void testExpectedTenderType()
           
 void testFindByBanner()
           
 void testFindByReleaseDate()
           
 void testFindByStatus()
           
 void testFindMailOrderBatchByBatchNumber()
           
 void testMailOrderBatchFindHints()
           
 void testMailOrderBatchSubmitFromUICreatesOrigOrderSummary()
           
 void testPendMailOrderBatchInOpenStatusSucceeds()
           
 void testPendMailOrderBatchInReleasedStatusFails()
           
 void testRefundGenerationOnMailOrderReleaseWithCheckOverpayment()
           
 void testReleaseMailOrderBatch()
           
 void testReleaseMailOrderBatchInOpenStatus()
           
 void testReleaseMailOrderBatchInPendedStatus()
           
 void testReleaseMailOrderBatchPaymentAuthCreditCardPayment()
           
 void testReleaseMailOrderBatchPaymentAuthCreditCardPaymentAndCancelledCCPayment()
           
 void testReleaseMailOrderBatchPaymentAuthCreditCardPaymentNotWithinLeadTime()
           
 void testReleaseMailOrderBatchPaymentAuthCreditCardPaymentWithOverpayment()
           
 void testReleaseMailOrderBatchPaymentAuthMixedPayments()
           
 void testReleaseMailOrderBatchPaymentAuthMultipleCreditCardPayments()
           
 void testReleaseMailOrderBatchWithDeclinedCreditCardPaymentOnOrder()
           
 void testReleaseMailOrderBatchWithGiftCertificatePaymentOnOrder()
           
 void testReleaseMailOrderBatchWithInvalidMonogramServiceLineOnOrder()
           
 void testReleaseMailOrderBatchWithMissingPaymentOnOrder()
           
 void testReleaseMailOrderBatchWithMultipleOrders()
           
 void testReleaseMailOrderBatchWithOrderHavingOneCancelledLineAndOneValidLine()
           
 void testReleaseMailOrderBatchWithOrderHavingOneLineInPreCancelledStateForIncorrectQty()
           
 void testReleaseMailOrderBatchWithOrderThatContainsSellingSkuShipRestriction()
           
 void testReleaseMailOrderBatchWithOrderThatContainsShipToShipRestriction()
           
 void testReleaseMailOrderBatchWithOrderThatHasAnEventHold()
           
 void testReleaseMailOrderBatchWithOrderThatHasAnInvalidEventHold()
           
 void testReleaseMailOrderBatchWithOrderThatHasAnInvalidPersonalHold()
           
 void testReleaseMailOrderBatchWithOrderThatHasAPersonalHold()
           
 void testReleaseMailOrderBatchWithOrderThatHasCheckPayments()
           
 void testReleaseMailOrderBatchWithOrderThatHasRushDelivery()
           
 void testReleaseMailOrderBatchWithPersonalizationLineOnOrder()
           
 void testReleaseMailOrderBatchWithRestrictedCharsOnPersonalizationOnOrder()
           
 void testRequiredFieldsOnMailOrderBatch()
           
 void testSearchCriteriaValidation()
           
 void testThrowExceptionWhenRefundsGeneratedInPrebatchState()
           
 void testValidatorCalledFromMailOrderBatchSubmit()
           
 
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

MailOrderBatchTest

public MailOrderBatchTest(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

testThrowExceptionWhenRefundsGeneratedInPrebatchState

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

testRefundGenerationOnMailOrderReleaseWithCheckOverpayment

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

testCreateMailOrderBatch

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

testReleaseMailOrderBatchWithOrderHavingOneCancelledLineAndOneValidLine

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

testCannotAddMailOrderToReleasedBatch

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

testRequiredFieldsOnMailOrderBatch

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

testExpectedTenderAmountReceivedRequired

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

testExpectedTenderType

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

testValidatorCalledFromMailOrderBatchSubmit

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

testFindByBanner

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

testFindMailOrderBatchByBatchNumber

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

testFindByStatus

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

testFindByReleaseDate

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

testPendMailOrderBatchInOpenStatusSucceeds

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

testPendMailOrderBatchInReleasedStatusFails

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

testSearchCriteriaValidation

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

testAddOrderToMailOrderBatchSubmit

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

testMailOrderBatchSubmitFromUICreatesOrigOrderSummary

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

testAddOrderToNullMailOrderBatchSubmit

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

testAddOrderToMailOrderBatchPend

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

testAddOrderToMailOrderBatchWithDifferentBannerFails

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

testAddOrderToMailOrderBatchSubmitBatchFailsDoesNotSaveOrder

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

testBatchIsReleasableForPhysicalTender

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

testBatchIsReleasableForNonPhysicalTender

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

testReleaseMailOrderBatchInOpenStatus

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

testReleaseMailOrderBatchInPendedStatus

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

testReleaseMailOrderBatch

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

testReleaseMailOrderBatchWithMultipleOrders

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

testReleaseMailOrderBatchWithGiftCertificatePaymentOnOrder

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

testReleaseMailOrderBatchWithDeclinedCreditCardPaymentOnOrder

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

testReleaseMailOrderBatchWithPersonalizationLineOnOrder

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

testReleaseMailOrderBatchWithMissingPaymentOnOrder

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

testReleaseMailOrderBatchWithRestrictedCharsOnPersonalizationOnOrder

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

testReleaseMailOrderBatchWithInvalidMonogramServiceLineOnOrder

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

testReleaseMailOrderBatchWithOrderThatContainsShipToShipRestriction

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

testReleaseMailOrderBatchWithOrderThatContainsSellingSkuShipRestriction

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

testReleaseMailOrderBatchWithOrderThatHasRushDelivery

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

testReleaseMailOrderBatchWithOrderThatHasAnEventHold

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

testReleaseMailOrderBatchWithOrderThatHasAPersonalHold

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

testReleaseMailOrderBatchWithOrderThatHasCheckPayments

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

testReleaseMailOrderBatchWithOrderThatHasAnInvalidPersonalHold

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

testReleaseMailOrderBatchWithOrderThatHasAnInvalidEventHold

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

testDirectShipMailOrderGetsPersonalizationServices

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

testMailOrderBatchFindHints

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

testReleaseMailOrderBatchWithOrderHavingOneLineInPreCancelledStateForIncorrectQty

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

testReleaseMailOrderBatchPaymentAuthCreditCardPayment

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

testReleaseMailOrderBatchPaymentAuthMixedPayments

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

testReleaseMailOrderBatchPaymentAuthMultipleCreditCardPayments

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

testReleaseMailOrderBatchPaymentAuthCreditCardPaymentWithOverpayment

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

testReleaseMailOrderBatchPaymentAuthCreditCardPaymentAndCancelledCCPayment

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

testReleaseMailOrderBatchPaymentAuthCreditCardPaymentNotWithinLeadTime

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


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