com.retek.component.customerorder
Class CustomerOrderCOTest

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

public class CustomerOrderCOTest
extends CustomerOrderApiTestCase


Field Summary
 
Fields inherited from class com.retek.commons.util.RetekTestCase
BEGIN_PROFILING, END_PROFILING
 
Constructor Summary
CustomerOrderCOTest(java.lang.String name)
           
 
Method Summary
 void doSetUp()
           
 void doTearDown()
           
 void testAddOrderLines()
           
 void testAddPromotionDiscountToOrder()
           
 void testApplyOrderLineWithShipToRestrictionForApoFpoBoxDoesntActuallyAddLine()
           
 void testApplyOrderLineWithShipToRestrictionForPOBoxDoesntActuallyAddLine()
           
 void testApplyOrderLineWithShipToRestrictionsDoesntActuallyAddLine()
           
 void testApplyPaymentEqualToOutstandingGoodwillToResa()
           
 void testApplyPaymentGreaterThanOutstandingGoodwillToSalesAudit()
           
 void testApplyPaymentLessThanOutstandingGoodwillToResa()
           
 void testAttachPaymentToOrder()
           
 void testCancelOrderStateWithOneLine()
           
 void testCashPaymentNotManuallyAuthorizedPendsOrder()
           
 void testChangeOrderDefaultShipToChangesNullOrderLineShipTos()
           
 void testCreateCustomerFromNewOrder()
           
 void testCreateCustomerOrder()
           
 void testCreateInvalidCustomerFromNewOrder()
           
 void testCustomerNotChangedByNewOrder()
           
 void testCustomerOrderWorklistItem()
           
 void testDiscardChangesReclaimsShipToOrphan()
           
 void testExpectedReceiptDateOnShipContainer()
           
 void testFailToSetEmployeeOrderTypeDueToOrderLines()
           
 void testGetOrderLineByLineNumber()
           
 void testGetOrderLinesAndReturnLines()
           
 void testGetReturnableOrderLines()
           
 void testGetSaleAndReturnLineNumbers()
           
 void testGetShipToAddresses()
           
 void testGetTenderTypes()
           
 void testGetTotalShippedQuantity()
           
 void testGiftOrderLine()
           
 void testIsLineAGiftCertificate()
           
 void testIsNewNormalOrderLineAllowedAfterFraudRulePendsOrderHasFulfillingQty()
           
 void testIsNewNormalOrderLineAllowedAfterFraudRulePendsOrderHasShippedQty()
           
 void testIsNewNormalOrderLineAllowedAfterFraudRulePendsOrderNoFulfillingOrShippedQty()
           
 void testIsNewNormalOrderLineAllowedAfterManualPendHasFulfillingAndShippedQty()
           
 void testIsNewNormalOrderLineAllowedAfterManualPendHasFulfillingQty()
           
 void testIsNewNormalOrderLineAllowedAfterManualPendHasShippedQty()
           
 void testIsNewNormalOrderLineAllowedAfterManualPendNoFulfillingOrShippedQty()
           
 void testIsNewNormalOrderLineAllowedAfterSubmit()
           
 void testIsNewNormalOrderLineAllowedAfterSystematicAndManualPend()
           
 void testIsNewNormalOrderLineAllowedAfterSystematicPendHasFulfillingQty()
           
 void testIsNewNormalOrderLineAllowedAfterSystematicPendHasShippedQty()
           
 void testIsNewNormalOrderLineAllowedAfterSystematicPendNoFulfillingOrShippedQty()
           
 void testLineAddressDoesntChangeWhenSameCustomerSetOnOrder()
           
 void testNotSelectInactiveShippingRateTableFromSourceCode()
           
 void testOrderCancelCustomerHistoryForOrder()
           
 void testOrderCloseCustomerHistoryForOrder()
           
 void testOrderLineShipToAddress()
           
 void testOrderSubmitByBillToCustomerCreatedShipToCustomerHistoryEventsForOrder()
          Creating a Gifting Order will creare a Customer History for Ship to Customer i.e.
 void testOrderSubmitCreatedCustomerHistoryForOrder()
           
 void testOrderTypeValidation()
           
 void testOriginalOrderDateForACustomerWhoHadPlacedOrderOnAPreviousDate()
           
 void testOriginalOrderDateForACustomerWhoIsPlacingOrderForFirstTime()
           
 void testPendCustomerOrderThenSubmitOrderBecomesOpen()
           
 void testSelectShippingRateTableFromMedia()
           
 void testSelectShippingRateTableFromSourceCode()
           
 void testSetCustomerOnOrderWithEmptyCustomer()
           
 void testSetCustomerWithShipToAddressWithShipToRestrictions()
           
 void testSetEmployeeOrderType()
           
 void testSetExistingCustomer()
           
 void testShipToCreation()
           
 void testShipToMessages()
           
 void testSystemGeneratedCancelByDateAfterUserCancelByDate()
           
 void testSystemGeneratedCancelByDateBeforeUserCancelByDate()
           
 void testThreeReservedLinesManualAuthAndGoesOpen()
           
 void testUnderpaymentOnOrderGreaterThanToleranceAmountPendsOrder()
           
 void testUnderpaymentOnOrderLessThanToleranceAmountPersistsOrder()
           
 void testUnderpaymentOnOrderWithNoToleranceValuesPendsOrder()
           
 void testUpdateDecreaseReservationAfterSubmitAndRead()
           
 void testUpdateIncreaseReservationAfterSubmitAndRead()
           
 void testUpdatePendedOrderCancelDate()
           
 void testUpdatePrimaryShipToBillToDoesNotUpdateOrdersShipToBillTo()
           
 void testWorkflowContextBugWithStateChanges()
           
 
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

CustomerOrderCOTest

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

testApplyPaymentGreaterThanOutstandingGoodwillToSalesAudit

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

testApplyPaymentEqualToOutstandingGoodwillToResa

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

testApplyPaymentLessThanOutstandingGoodwillToResa

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

testUnderpaymentOnOrderGreaterThanToleranceAmountPendsOrder

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

testCashPaymentNotManuallyAuthorizedPendsOrder

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

testUnderpaymentOnOrderLessThanToleranceAmountPersistsOrder

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

testUnderpaymentOnOrderWithNoToleranceValuesPendsOrder

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

testIsNewNormalOrderLineAllowedAfterSubmit

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

testIsNewNormalOrderLineAllowedAfterSystematicAndManualPend

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

testIsNewNormalOrderLineAllowedAfterManualPendNoFulfillingOrShippedQty

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

testIsNewNormalOrderLineAllowedAfterSystematicPendNoFulfillingOrShippedQty

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

testIsNewNormalOrderLineAllowedAfterManualPendHasFulfillingQty

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

testIsNewNormalOrderLineAllowedAfterSystematicPendHasFulfillingQty

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

testIsNewNormalOrderLineAllowedAfterManualPendHasShippedQty

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

testIsNewNormalOrderLineAllowedAfterManualPendHasFulfillingAndShippedQty

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

testIsNewNormalOrderLineAllowedAfterSystematicPendHasShippedQty

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

testIsNewNormalOrderLineAllowedAfterFraudRulePendsOrderNoFulfillingOrShippedQty

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

testIsNewNormalOrderLineAllowedAfterFraudRulePendsOrderHasFulfillingQty

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

testIsNewNormalOrderLineAllowedAfterFraudRulePendsOrderHasShippedQty

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

testThreeReservedLinesManualAuthAndGoesOpen

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

testCreateCustomerOrder

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

testAddPromotionDiscountToOrder

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

testAddOrderLines

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

testGetOrderLineByLineNumber

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

testGiftOrderLine

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

testGetReturnableOrderLines

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

testGetSaleAndReturnLineNumbers

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

testGetOrderLinesAndReturnLines

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

testCreateCustomerFromNewOrder

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

testLineAddressDoesntChangeWhenSameCustomerSetOnOrder

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

testCustomerNotChangedByNewOrder

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

testCreateInvalidCustomerFromNewOrder

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

testOrderLineShipToAddress

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

testSetExistingCustomer

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

testSetCustomerWithShipToAddressWithShipToRestrictions

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

testGetShipToAddresses

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

testShipToCreation

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

testShipToMessages

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

testChangeOrderDefaultShipToChangesNullOrderLineShipTos

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

testUpdateIncreaseReservationAfterSubmitAndRead

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

testUpdateDecreaseReservationAfterSubmitAndRead

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

testIsLineAGiftCertificate

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

testOriginalOrderDateForACustomerWhoHadPlacedOrderOnAPreviousDate

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

testOriginalOrderDateForACustomerWhoIsPlacingOrderForFirstTime

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

testOrderSubmitCreatedCustomerHistoryForOrder

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

testOrderSubmitByBillToCustomerCreatedShipToCustomerHistoryEventsForOrder

public void testOrderSubmitByBillToCustomerCreatedShipToCustomerHistoryEventsForOrder()
                                                                               throws java.lang.Exception
Creating a Gifting Order will creare a Customer History for Ship to Customer i.e. If a bill to customer A creates n order lines and gifts it to a ship to customer B then n history events will be created for the Ship to Customer B. The message will be Received Gift item "item desc" from "Customer name(Custome Id)" on "OrderCreateDate"

Throws:
java.lang.Exception

testOrderCancelCustomerHistoryForOrder

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

testOrderCloseCustomerHistoryForOrder

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

testAttachPaymentToOrder

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

testGetTenderTypes

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

testExpectedReceiptDateOnShipContainer

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

testCancelOrderStateWithOneLine

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

testPendCustomerOrderThenSubmitOrderBecomesOpen

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

testSetCustomerOnOrderWithEmptyCustomer

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

testUpdatePrimaryShipToBillToDoesNotUpdateOrdersShipToBillTo

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

testSelectShippingRateTableFromMedia

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

testSelectShippingRateTableFromSourceCode

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

testNotSelectInactiveShippingRateTableFromSourceCode

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

testSetEmployeeOrderType

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

testFailToSetEmployeeOrderTypeDueToOrderLines

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

testOrderTypeValidation

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

testUpdatePendedOrderCancelDate

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

testSystemGeneratedCancelByDateBeforeUserCancelByDate

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

testSystemGeneratedCancelByDateAfterUserCancelByDate

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

testApplyOrderLineWithShipToRestrictionsDoesntActuallyAddLine

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

testGetTotalShippedQuantity

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

testWorkflowContextBugWithStateChanges

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

testApplyOrderLineWithShipToRestrictionForPOBoxDoesntActuallyAddLine

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

testApplyOrderLineWithShipToRestrictionForApoFpoBoxDoesntActuallyAddLine

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

testCustomerOrderWorklistItem

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

testDiscardChangesReclaimsShipToOrphan

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


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