com.retek.component.customerorder
Class ShipToTest

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

public class ShipToTest
extends CustomerOrderApiTestCase


Field Summary
 
Fields inherited from class com.retek.commons.util.RetekTestCase
BEGIN_PROFILING, END_PROFILING
 
Constructor Summary
ShipToTest(java.lang.String arg0)
           
 
Method Summary
 void doInitialSetUp()
           
 void doSetUp()
           
 void doTearDown()
           
 void testBasicShipToReturnTotals()
           
 void testBasicShipToReturnTotalsWithPostSaleAccommodation()
           
 void testBasicShipToReturnTotalsWithPreSaleAccommodation()
           
 void testBasicShipToReturnTotalsWithPromotions()
           
 void testCalculateMerchTax()
           
 void testCalculateMerchTaxWithPreviousSettledTaxKeepsTaxToMaxOfEitherOfThoseValues()
           
 void testCalculateNoChargeShipToTotals()
           
 void testCalculateRushDeliveryCancelOrderLineRecomputesCharge()
           
 void testCalculateRushDeliveryChangeCarrierClearsRushDeliveryCharge()
           
 void testCalculateRushDeliveryChargeForLinesOfMultipleMedias()
           
 void testCalculateRushDeliveryChargeMultipleItemsItemLevelRushContig()
           
 void testCalculateRushDeliveryChargeMultipleItemsSomeItemLevelRushContig()
           
 void testCalculateRushDeliveryChargeMultipleItemsSomeItemLevelRushNonContig()
           
 void testCalculateRushDeliveryChargeWithNonRushDeliveryCarrier()
           
 void testCalculateRushDeliveryChargeWithOneItemOnOrderItemHasRushDeliveryOverride()
           
 void testCalculateRushDeliveryMultipleItemsItemLevelRushNonContig()
           
 void testCalculateRushDeliveryMultipleItemsNoItemLevelRushContig()
           
 void testCalculateRushDeliveryMultipleItemsNoItemLevelRushNonContig()
           
 void testCalculateRushDeliverySingleItemItemLevelRushContig()
           
 void testCalculateRushDeliverySingleItemItemLevelRushNonContig()
           
 void testCalculateRushDeliverySingleItemNoItemLevelRushContig()
           
 void testCalculateRushDeliverySingleItemNoItemLevelRushNonContig()
           
 void testCalculateServiceChargeTotals()
           
 void testCalculateSHTax()
           
 void testCalculateStandardShippingChargeDoesNotIncludeVasCharges()
           
 void testCalculateStandardShippingChargeForLinesOfMultipleMedias()
           
 void testCalculateStandardShippingChargesWithPartialOrderLineImpactsShippingCharge()
           
 void testCalculateStandardShippingChargesWithPartialOrderLineNoStandardDeliveryCharge()
           
 void testCalculateStandardShippingChargesWithPartialOrderLineZeroPrice()
           
 void testCalculateTotalTax()
           
 void testCalculateTotalTaxForPack()
           
 void testCalculateVASTax()
           
 void testCalculateVASTaxIncludingPackComponentLines()
           
 void testCalculatingStandardShippingChargeSetsOriginalStandardShippingChargeOnlyWhenAmountIncreases()
           
 void testComputeTotalReturnRefundAmountWithExchangeReturn()
           
 void testGetShipmentRequestsWithTwoGiftCertificatesDiffCarrierSameMethod()
           
 void testGetShipmentRequestsWithTwoGiftCertificatesSameCarrierDiffMethod()
           
 void testGetShippmentRequests()
           
 void testGetShippmentRequestsWithOneGiftCertificateSameCarrierMethod()
           
 void testGetTotalExtendedTaxWorksWhenOrderTaxAccommodationGreaterThanExtendedPrice()
           
 void testOrderEntryShipFromAddressAcceptanceUserAddressOnTaxInvoice()
           
 void testOrderEntryShipFromAddressOnTaxInvoice()
          The results of what is sent to Vertex is not captured in a component.
 void testOrderEntryShipFromLocationMissingThrowsException()
          The results of what is sent to Vertex is not captured in a component.
 void testOrderEntryShipFromPhysicalAddressOnTaxInvoice()
          The results of what is sent to Vertex is not captured in a component.
 void testPreviouslySettledValuesPersisted()
           
 void testShippingRateTableByEffectiveDateForMediaRateTable()
           
 void testShippingRateTableByEffectiveDateForSourceCodeRateTable()
           
 void testShippingRateTableForExchangeSaleUsesNewRateTable()
           
 void testShippingRateTableForReturnUsesOriginalRateTable()
           
 void testShipToAudit()
           
 void testShipToAuditOnOrderLineCancel()
           
 void testSHTaxProration()
           
 
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

ShipToTest

public ShipToTest(java.lang.String arg0)
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()
Specified by:
doTearDown in class CustomerOrderApiTestCase

testCalculateNoChargeShipToTotals

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

testCalculateMerchTax

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

testCalculateMerchTaxWithPreviousSettledTaxKeepsTaxToMaxOfEitherOfThoseValues

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

testCalculateSHTax

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

testSHTaxProration

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

testCalculateStandardShippingChargeDoesNotIncludeVasCharges

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

testCalculateStandardShippingChargesWithPartialOrderLineZeroPrice

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

testCalculateStandardShippingChargesWithPartialOrderLineImpactsShippingCharge

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

testCalculateStandardShippingChargesWithPartialOrderLineNoStandardDeliveryCharge

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

testCalculateVASTax

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

testCalculateVASTaxIncludingPackComponentLines

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

testCalculateTotalTaxForPack

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

testCalculateTotalTax

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

testCalculateRushDeliveryMultipleItemsNoItemLevelRushContig

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

testCalculateRushDeliveryMultipleItemsNoItemLevelRushNonContig

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

testCalculateRushDeliverySingleItemNoItemLevelRushContig

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

testCalculateRushDeliverySingleItemNoItemLevelRushNonContig

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

testCalculateRushDeliverySingleItemItemLevelRushNonContig

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

testCalculateRushDeliverySingleItemItemLevelRushContig

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

testCalculateRushDeliveryChargeWithNonRushDeliveryCarrier

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

testCalculateRushDeliveryChargeMultipleItemsSomeItemLevelRushNonContig

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

testCalculateRushDeliveryChargeMultipleItemsSomeItemLevelRushContig

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

testCalculateRushDeliveryChargeMultipleItemsItemLevelRushContig

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

testCalculateRushDeliveryMultipleItemsItemLevelRushNonContig

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

testCalculateRushDeliveryChargeWithOneItemOnOrderItemHasRushDeliveryOverride

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

testCalculateStandardShippingChargeForLinesOfMultipleMedias

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

testCalculateRushDeliveryChargeForLinesOfMultipleMedias

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

testCalculateRushDeliveryCancelOrderLineRecomputesCharge

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

testCalculateRushDeliveryChangeCarrierClearsRushDeliveryCharge

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

testCalculateServiceChargeTotals

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

testGetShippmentRequests

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

testGetShippmentRequestsWithOneGiftCertificateSameCarrierMethod

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

testGetShipmentRequestsWithTwoGiftCertificatesSameCarrierDiffMethod

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

testGetShipmentRequestsWithTwoGiftCertificatesDiffCarrierSameMethod

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

testShipToAudit

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

testShipToAuditOnOrderLineCancel

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

testOrderEntryShipFromAddressOnTaxInvoice

public void testOrderEntryShipFromAddressOnTaxInvoice()
                                               throws java.lang.Exception
The results of what is sent to Vertex is not captured in a component. For this reason we cannot assert the value of the address is equal to the default address on the virtual store of the media.

Throws:
java.lang.Exception

testOrderEntryShipFromPhysicalAddressOnTaxInvoice

public void testOrderEntryShipFromPhysicalAddressOnTaxInvoice()
                                                       throws java.lang.Exception
The results of what is sent to Vertex is not captured in a component. For this reason we cannot assert the value of the address is equal to the default address on the virtual store of the media.

Throws:
java.lang.Exception

testOrderEntryShipFromLocationMissingThrowsException

public void testOrderEntryShipFromLocationMissingThrowsException()
                                                          throws java.lang.Exception
The results of what is sent to Vertex is not captured in a component. For this reason we cannot assert the value of the address is equal to the default address on the virtual store of the media.

Throws:
java.lang.Exception

testOrderEntryShipFromAddressAcceptanceUserAddressOnTaxInvoice

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

testPreviouslySettledValuesPersisted

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

testComputeTotalReturnRefundAmountWithExchangeReturn

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

testCalculatingStandardShippingChargeSetsOriginalStandardShippingChargeOnlyWhenAmountIncreases

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

testGetTotalExtendedTaxWorksWhenOrderTaxAccommodationGreaterThanExtendedPrice

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

testBasicShipToReturnTotals

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

testBasicShipToReturnTotalsWithPostSaleAccommodation

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

testBasicShipToReturnTotalsWithPreSaleAccommodation

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

testBasicShipToReturnTotalsWithPromotions

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

testShippingRateTableByEffectiveDateForMediaRateTable

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

testShippingRateTableByEffectiveDateForSourceCodeRateTable

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

testShippingRateTableForReturnUsesOriginalRateTable

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

testShippingRateTableForExchangeSaleUsesNewRateTable

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


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