com.retek.component.customerorder
Class BaseReturnLineTest

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.BaseReturnLineTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
ReplacementTest, ReturnLineAccommodationsTest, ReturnLinePromotionsTest, ReturnLineReturnedActionTest, ReturnLineTest, ZeroSaleReturnTest

public abstract class BaseReturnLineTest
extends CustomerOrderApiTestCase


Field Summary
protected  CustomerOrderManager mgr
           
protected  SupplierReturnDisposition systemReturnDisposition
           
protected  User user
           
 
Fields inherited from class com.retek.commons.util.RetekTestCase
BEGIN_PROFILING, END_PROFILING
 
Constructor Summary
protected BaseReturnLineTest(java.lang.String name)
           
 
Method Summary
protected  ReturnReason createReturnReason(boolean isRefundShippingHandling, boolean isRefundVas, boolean isRefundGiftService)
           
protected  SellingSku createSellingSku(Media media, Quantity availableQty)
           
protected  SupplierReturnDisposition createSystemReturnDisposition()
           
 void doInitialSetUp()
           
 void doSetUp()
           
 void doTearDown()
           
protected  Money getShipToGrandTotal(ShipToTotals shipToTotals)
           
protected  void setupShippingRateTable(Media media)
           
protected  void setupSingleLevelShippingRateTable(Media media)
           
 
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
 

Field Detail

mgr

protected CustomerOrderManager mgr

systemReturnDisposition

protected SupplierReturnDisposition systemReturnDisposition

user

protected User user
Constructor Detail

BaseReturnLineTest

protected BaseReturnLineTest(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

createSystemReturnDisposition

protected final SupplierReturnDisposition createSystemReturnDisposition()
                                                                 throws java.lang.Exception
Throws:
java.lang.Exception

setupShippingRateTable

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

setupSingleLevelShippingRateTable

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

createReturnReason

protected final ReturnReason createReturnReason(boolean isRefundShippingHandling,
                                                boolean isRefundVas,
                                                boolean isRefundGiftService)
                                         throws java.lang.Exception
Throws:
java.lang.Exception

createSellingSku

protected final SellingSku createSellingSku(Media media,
                                            Quantity availableQty)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getShipToGrandTotal

protected Money getShipToGrandTotal(ShipToTotals shipToTotals)
                             throws java.lang.Exception
Throws:
java.lang.Exception


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