com.retek.component.tax
Class TaxApiTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.retek.commons.util.RetekTestCase
              extended bycom.retek.component.tax.TaxApiTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
TaxCalculatorTest, TaxCreditorTest, TaxManagerFactoryTest, TaxManagerTest

public abstract class TaxApiTestCase
extends RetekTestCase

Abstract Junit TestCase class for Tax API tests.


Field Summary
protected  TaxManager taxMgr
           
 
Fields inherited from class com.retek.commons.util.RetekTestCase
BEGIN_PROFILING, END_PROFILING
 
Constructor Summary
protected TaxApiTestCase(java.lang.String name)
           
 
Method Summary
 void doSetUp()
           
 void doTearDown()
           
protected  TaxInvoiceLineItem getDefaultValidLineItem(long lineItemId, Money extendedAmount, java.lang.String skuId)
           
protected  Address getOrderAcceptanceAddress()
           
protected  Address getShipFromAddress()
           
protected  Address getShipToAddress()
           
protected  TaxCalculatorInvoice getValidArizonaTaxInvoice()
           
protected  TaxCalculatorInvoice getValidColoradoTaxInvoice()
           
protected  TaxInvoiceLineItem getValidLineItem(long lineItemId, Money extendedAmount, java.lang.String productCode, java.lang.String skuId)
           
protected  TaxCalculatorInvoice getValidTaxCalculatorInvoice()
           
protected  TaxCalculatorInvoice 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
 

Field Detail

taxMgr

protected TaxManager taxMgr
Constructor Detail

TaxApiTestCase

protected TaxApiTestCase(java.lang.String name)
Method Detail

doSetUp

public void doSetUp()
             throws java.lang.Exception
Specified by:
doSetUp in class RetekTestCase
Throws:
java.lang.Exception

doTearDown

public void doTearDown()
                throws java.lang.Exception
Specified by:
doTearDown in class RetekTestCase
Throws:
java.lang.Exception

getDefaultValidLineItem

protected final TaxInvoiceLineItem getDefaultValidLineItem(long lineItemId,
                                                           Money extendedAmount,
                                                           java.lang.String skuId)
                                                    throws java.lang.Exception
Throws:
java.lang.Exception

getOrderAcceptanceAddress

protected final Address getOrderAcceptanceAddress()
                                           throws SystemException,
                                                  BusinessException
Throws:
SystemException
BusinessException

getShipFromAddress

protected final Address getShipFromAddress()
                                    throws SystemException,
                                           BusinessException
Throws:
SystemException
BusinessException

getShipToAddress

protected final Address getShipToAddress()
                                  throws SystemException,
                                         BusinessException
Throws:
SystemException
BusinessException

getValidArizonaTaxInvoice

protected final TaxCalculatorInvoice getValidArizonaTaxInvoice()
                                                        throws java.lang.Exception
Throws:
java.lang.Exception

getValidColoradoTaxInvoice

protected final TaxCalculatorInvoice getValidColoradoTaxInvoice()
                                                         throws java.lang.Exception
Throws:
java.lang.Exception

getValidLineItem

protected final TaxInvoiceLineItem getValidLineItem(long lineItemId,
                                                    Money extendedAmount,
                                                    java.lang.String productCode,
                                                    java.lang.String skuId)
                                             throws java.lang.Exception
Throws:
java.lang.Exception

getValidTaxCalculatorInvoice

protected final TaxCalculatorInvoice getValidTaxCalculatorInvoice()
                                                           throws java.lang.Exception
Throws:
java.lang.Exception

getValidWisconsonTaxInvoice

protected final TaxCalculatorInvoice getValidWisconsonTaxInvoice()
                                                          throws java.lang.Exception
Throws:
java.lang.Exception


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