com.retek.component.customerorder
Class ShippedContainerTest

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

public class ShippedContainerTest
extends CustomerOrderApiTestCase


Field Summary
 
Fields inherited from class com.retek.commons.util.RetekTestCase
BEGIN_PROFILING, END_PROFILING
 
Constructor Summary
ShippedContainerTest(java.lang.String name)
           
 
Method Summary
 void doInitialSetUp()
           
 void doSetUp()
           
 void doTearDown()
           
protected  void setupShippingRateTable(Media media)
           
 void testAllPromotionDiscountProRatedToFirstShipmentDoesntFailOnSecondShipment()
           
 void testCalculateShippingChargeForPartialSettlementFollowedByFullSettlement()
           
 void testCalculateShippingChargesForPartialShipments1()
           
 void testCalculateShippingChargesForPartialShipments2()
           
 void testCalculateShippingChargesForPartialShipmentsWhereShippingRatesArePercentages1()
           
 void testCalculateShippingChargesForPartialShipmentsWhereShippingRatesArePercentages2()
           
 void testCalculateShippingChargesForPartialShipmentsWithNonStandardDelivery()
           
 void testCalculateTaxes()
           
 void testCalculateTotalsForPartialShipmentNoShippingCharges()
           
 void testCanSubmitContainerWithDuplicateTrackingNumberAndCarrierCodeOnTwoOrders()
           
 void testChargedSHTaxEqualToQuotedSHTaxWhenNoTaxChangesInVertexAndLinesShippedSeperately()
           
 void testCheckForDuplicateCarrierAndTrackingNumber()
           
 void testFindShippedContainerByTrackingNumberAndCarrierCode()
           
 void testFindShippedContainerByTrackingNumberAndCarrierCodeAndOrderId()
           
 void testFindShippedContainerByTrackingNumberAndCarrierCodeAndOrderIdAndShipmentRequestId()
           
 void testGetCarrierTrackingUrlForShippedContainer()
           
 void testGetTotalShippingAndDeliveryChargeOnLine()
           
 void testMerchTaxCorrectlyAdjustedWhenTaxAtShipTimeIsGreaterThanTaxAtOrderCreateTime()
           
 void testMerchTaxCorrectlyAdjustedWhenTaxAtShipTimeIsLessThanTaxAtOrderCreateTime()
           
 void testQuotedTaxGreaterThanActualTaxCustomerChargedActualTax()
           
 void testQuotedTaxGreaterThanActualTaxCustomerChargedActualTaxCausesOrderBalanceToGoDown()
           
 void testQuotedTaxGreaterThanActualTaxWithCreditCardPaymentChangesAmountChargedToCreditCard()
           
 void testQuotedTaxLessThanActualTaxCustomerChargedQuotedTax()
           
 void testSalesAuditExportStateTransitions()
           
 void testShippedContainerCreation()
           
 void testShippedContainerUsesOriginalShippingRateTable()
           
 void testShippingAndHandlingTaxAccountsForPromotion()
           
 
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

ShippedContainerTest

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

testCalculateShippingChargeForPartialSettlementFollowedByFullSettlement

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

testShippedContainerCreation

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

testSalesAuditExportStateTransitions

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

testCalculateTaxes

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

testCalculateShippingChargesForPartialShipments1

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

testCalculateShippingChargesForPartialShipments2

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

testCalculateTotalsForPartialShipmentNoShippingCharges

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

testCalculateShippingChargesForPartialShipmentsWhereShippingRatesArePercentages1

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

testCalculateShippingChargesForPartialShipmentsWhereShippingRatesArePercentages2

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

testCalculateShippingChargesForPartialShipmentsWithNonStandardDelivery

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

testFindShippedContainerByTrackingNumberAndCarrierCode

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

testFindShippedContainerByTrackingNumberAndCarrierCodeAndOrderId

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

testFindShippedContainerByTrackingNumberAndCarrierCodeAndOrderIdAndShipmentRequestId

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

testCheckForDuplicateCarrierAndTrackingNumber

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

testGetTotalShippingAndDeliveryChargeOnLine

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

testMerchTaxCorrectlyAdjustedWhenTaxAtShipTimeIsGreaterThanTaxAtOrderCreateTime

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

testMerchTaxCorrectlyAdjustedWhenTaxAtShipTimeIsLessThanTaxAtOrderCreateTime

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

testQuotedTaxLessThanActualTaxCustomerChargedQuotedTax

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

testQuotedTaxGreaterThanActualTaxCustomerChargedActualTax

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

testQuotedTaxGreaterThanActualTaxCustomerChargedActualTaxCausesOrderBalanceToGoDown

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

testQuotedTaxGreaterThanActualTaxWithCreditCardPaymentChangesAmountChargedToCreditCard

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

testGetCarrierTrackingUrlForShippedContainer

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

testAllPromotionDiscountProRatedToFirstShipmentDoesntFailOnSecondShipment

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

testChargedSHTaxEqualToQuotedSHTaxWhenNoTaxChangesInVertexAndLinesShippedSeperately

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

testCanSubmitContainerWithDuplicateTrackingNumberAndCarrierCodeOnTwoOrders

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

testShippingAndHandlingTaxAccountsForPromotion

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

testShippedContainerUsesOriginalShippingRateTable

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

setupShippingRateTable

protected final void setupShippingRateTable(Media media)
                                     throws java.lang.Exception
Throws:
java.lang.Exception


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