com.retek.component.tax
Class TaxCalculatorTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.retek.commons.util.RetekTestCase
              extended bycom.retek.component.tax.TaxApiTestCase
                  extended bycom.retek.component.tax.TaxCalculatorTest
All Implemented Interfaces:
junit.framework.Test

public class TaxCalculatorTest
extends TaxApiTestCase


Field Summary
 
Fields inherited from class com.retek.component.tax.TaxApiTestCase
taxMgr
 
Fields inherited from class com.retek.commons.util.RetekTestCase
BEGIN_PROFILING, END_PROFILING
 
Constructor Summary
TaxCalculatorTest(java.lang.String name)
           
 
Method Summary
 void doSetUp()
           
 void doTearDown()
           
 void testBadOrderAcceptanceAddress()
           
 void testBadShipFromAddress()
           
 void testBadShipToAddress()
           
 void testCalculationTaxForCanada()
           
 void testCalculationTaxForPuertoRico()
           
 void testCompanyCodeIsRequired()
           
 void testCompanyIsRequired()
           
 void testCustomerCantBeNull()
           
 void testCustomerCodeCantBeNull()
           
 void testCustomerTaxExemptWithOneCompanyButNotTheOther()
           
 void testDoNotPersistInvoice()
           
 void testExtendedAmountInLineItemIsRequired()
           
 void testGetGiftingTaxForALineItemForAStateThatDoesNotHaveThisTax()
           
 void testGetGiftingTaxForALineItemForAStateThatHasThisTax()
           
 void testGetGiftingTaxForMultipleLineItemsForAStateThatDoesNotHaveThisTax()
           
 void testGetGiftingTaxForMultipleLineItemsForAStateThatHasThisTax()
           
 void testGetGiftingTaxForMultipleLineItemsWithOneBeingZeroForAStateThatHasThisTax()
           
 void testGetGiftTaxAndPersonalizationTaxForALineItemForAStateThatHasThisTax()
           
 void testGetMerchandiseTax()
           
 void testGetMerchandiseTaxAndPersist()
           
 void testGetMerchandiseTaxCredit()
           
 void testGetMerchandiseTaxCreditAndPersist()
           
 void testGetMerchandiseTaxForEachLineItem()
           
 void testGetMerchandiseTaxForMinneapolisProperWithSevenPercent()
           
 void testGetMerchandiseTaxForZipPlusFourOnToAddressLine()
           
 void testGetPersonalizationTaxForALineItemForAStateThatDoesNotHaveThisTax()
           
 void testGetPersonalizationTaxForALineItemForAStateThatHasThisTax()
           
 void testGetPersonalizationTaxForMultipleLineItemsForAStateThatDoesNotHaveThisTax()
           
 void testGetPersonalizationTaxForMultipleLineItemsForAStateThatHasThisTax()
           
 void testGetPersonalizationTaxForMultipleLineItemsWithOneBeingZeroForAStateThatHasThisTax()
           
 void testGetShippingAndHandlingTaxForEachLineItemWhenOneDoesNotHaveShippingCost()
           
 void testGetShippingAndHandlingTaxForStatesForStatesThatDontHaveThisTax()
           
 void testGetShippingAndHandlingTaxForStatesThatHaveThisTax()
           
 void testGetShippingAndHandlingTaxForStatesThatHaveThisTaxForEachLineItem()
           
 void testGetShippingAndHandlingTaxForStatesThatHaveThisTaxWithNoShippingCost()
           
 void testGetShippingAndHandlingTaxForStatesThatHaveThisTaxWithZeroShippingAmount()
           
 void testGetShippingAndHandlingTaxStatesThatHaveThisTaxForInvoiceAndEachLineItem()
           
 void testIdInLineItemIsDuplicate()
           
 void testInvalidProductCode()
           
 void testInvoiceDateIsRequired()
           
 void testInvoiceIsRequired()
           
 void testLineItemIdCantBeNegative()
           
 void testLineItemIdCantBeZero()
           
 void testLineItemIdLength()
           
 void testManualRollbackTaxInvoice()
          Deprecated. tests deprecated api
 void testMerchTaxForNonTaxExemptShipToAddress()
           
 void testMerchTaxForOverrideProductCode()
           
 void testMerchTaxForOverrideProductCodeInDiffJurisdiction()
           
 void testMerchTaxForTaxExemptShipToAddress()
           
 void testMockTaxCalculate()
           
 void testMustAddLineItem()
           
 void testNonTaxExcemptCustomer()
           
 void testOrderAcceptanceAddressCantBeEmpty()
           
 void testOrderAcceptanceAddressShouldNotBeNull()
           
 void testPersistInvoice()
           
 void testProductCodeInLineItem()
           
 void testQuantityInLineItemIsRequired()
           
 void testShipFromAddressShouldNotBeNull()
           
 void testShipFromCantBeEmpty()
           
 void testShipFromCountyIsOptional()
           
 void testShipToAddressCantBeEmpty()
           
 void testShipToAddressMissingCounty()
           
 void testShipToAddressMissingStateAndCity()
           
 void testShipToAddressShouldNotBeNull()
           
 void testSkuIdCantBeEmpty()
           
 void testSkuIdCantBeNull()
           
 void testTaxExcemptCustomer()
           
 void testTaxExcemptCustomerInDifferentState()
           
 void testTaxExcemptCustomerWithExpiredTaxCertificateInWisconson()
           
 
Methods inherited from class com.retek.component.tax.TaxApiTestCase
getDefaultValidLineItem, getOrderAcceptanceAddress, getShipFromAddress, getShipToAddress, getValidArizonaTaxInvoice, getValidColoradoTaxInvoice, getValidLineItem, getValidTaxCalculatorInvoice, getValidWisconsonTaxInvoice
 
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

TaxCalculatorTest

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

doSetUp

public void doSetUp()
             throws java.lang.Exception
Overrides:
doSetUp in class TaxApiTestCase
Throws:
java.lang.Exception

doTearDown

public void doTearDown()
                throws java.lang.Exception
Overrides:
doTearDown in class TaxApiTestCase
Throws:
java.lang.Exception

testMockTaxCalculate

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

testGetMerchandiseTax

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

testGetMerchandiseTaxForMinneapolisProperWithSevenPercent

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

testGetMerchandiseTaxAndPersist

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

testGetMerchandiseTaxCredit

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

testGetMerchandiseTaxCreditAndPersist

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

testGetMerchandiseTaxForEachLineItem

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

testInvoiceIsRequired

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

testInvoiceDateIsRequired

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

testShipFromAddressShouldNotBeNull

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

testShipFromCantBeEmpty

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

testShipFromCountyIsOptional

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

testBadShipToAddress

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

testBadShipFromAddress

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

testBadOrderAcceptanceAddress

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

testShipToAddressShouldNotBeNull

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

testShipToAddressCantBeEmpty

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

testSkuIdCantBeNull

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

testSkuIdCantBeEmpty

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

testOrderAcceptanceAddressShouldNotBeNull

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

testOrderAcceptanceAddressCantBeEmpty

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

testShipToAddressMissingStateAndCity

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

testShipToAddressMissingCounty

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

testCalculationTaxForCanada

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

testCalculationTaxForPuertoRico

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

testMustAddLineItem

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

testIdInLineItemIsDuplicate

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

testExtendedAmountInLineItemIsRequired

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

testQuantityInLineItemIsRequired

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

testProductCodeInLineItem

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

testCustomerCantBeNull

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

testCustomerCodeCantBeNull

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

testCompanyIsRequired

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

testCompanyCodeIsRequired

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

testGetShippingAndHandlingTaxForStatesThatHaveThisTax

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

testGetShippingAndHandlingTaxForStatesForStatesThatDontHaveThisTax

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

testGetShippingAndHandlingTaxForStatesThatHaveThisTaxWithZeroShippingAmount

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

testGetShippingAndHandlingTaxForStatesThatHaveThisTaxWithNoShippingCost

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

testGetShippingAndHandlingTaxForStatesThatHaveThisTaxForEachLineItem

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

testGetShippingAndHandlingTaxStatesThatHaveThisTaxForInvoiceAndEachLineItem

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

testGetShippingAndHandlingTaxForEachLineItemWhenOneDoesNotHaveShippingCost

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

testGetGiftingTaxForALineItemForAStateThatHasThisTax

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

testGetGiftingTaxForALineItemForAStateThatDoesNotHaveThisTax

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

testGetGiftingTaxForMultipleLineItemsForAStateThatHasThisTax

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

testGetGiftingTaxForMultipleLineItemsWithOneBeingZeroForAStateThatHasThisTax

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

testGetGiftingTaxForMultipleLineItemsForAStateThatDoesNotHaveThisTax

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

testGetPersonalizationTaxForALineItemForAStateThatHasThisTax

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

testGetPersonalizationTaxForALineItemForAStateThatDoesNotHaveThisTax

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

testGetPersonalizationTaxForMultipleLineItemsForAStateThatHasThisTax

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

testGetPersonalizationTaxForMultipleLineItemsWithOneBeingZeroForAStateThatHasThisTax

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

testGetPersonalizationTaxForMultipleLineItemsForAStateThatDoesNotHaveThisTax

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

testGetGiftTaxAndPersonalizationTaxForALineItemForAStateThatHasThisTax

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

testTaxExcemptCustomer

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

testNonTaxExcemptCustomer

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

testTaxExcemptCustomerInDifferentState

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

testTaxExcemptCustomerWithExpiredTaxCertificateInWisconson

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

testCustomerTaxExemptWithOneCompanyButNotTheOther

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

testLineItemIdCantBeZero

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

testLineItemIdCantBeNegative

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

testLineItemIdLength

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

testInvalidProductCode

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

testMerchTaxForTaxExemptShipToAddress

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

testMerchTaxForNonTaxExemptShipToAddress

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

testMerchTaxForOverrideProductCode

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

testMerchTaxForOverrideProductCodeInDiffJurisdiction

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

testPersistInvoice

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

testDoNotPersistInvoice

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

testGetMerchandiseTaxForZipPlusFourOnToAddressLine

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

testManualRollbackTaxInvoice

public void testManualRollbackTaxInvoice()
                                  throws java.lang.Exception
Deprecated. tests deprecated api

Throws:
java.lang.Exception


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