com.retek.component.customerorder.integration.rib
Class StockStatusInjectorTest

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

public class StockStatusInjectorTest
extends CustomerOrderApiTestCase


Field Summary
 
Fields inherited from class com.retek.commons.util.RetekTestCase
BEGIN_PROFILING, END_PROFILING
 
Constructor Summary
StockStatusInjectorTest(java.lang.String name)
           
 
Method Summary
 void assertOrderAndOrderLinesState(CustomerOrder order, CustomerOrderLine line, RDate estDeliveryDate, RDate shipmentDate)
           
 void doInitialSetUp()
           
 void doSetUp()
           
 void doTearDown()
           
 void setBackorderedQuantity(CustomerOrderLine line, Quantity backorderdQuantity)
           
 void setReservedQuantity(CustomerOrderLine line, Quantity reservedQuantity)
           
 void testCancelOrderLineCancelQtyEqualsFulfillingQty()
           
 void testCancelOrderLineCancelQtyGreaterThanFulfillingQtyThrowsException()
           
 void testCancelOrderLineCancelQtyLessThanFulfillingQty()
           
 void testCancelPackLineFullfilledAtPackLevel()
           
 void testCancelPackReservedAtPackLevelCancelsPackLineAfterPackLineGoesToFulfilling()
           
 void testCancelPackReservedAtSkuLevelsCancelsSkuLinesandAlsoPackLines()
           
 void testCancelPackReservedAtSkuLevelsCancelsSkuLinesandAlsoPackLinesAfterSkuLineGoesToFulfilling()
           
 void testCancelPackReservedAtSkuLevelsCancelsSkuLinesandAlsoPackLinesForAPackConsistingMoreThan1CompQty()
           
 void testCreateHistoryEventForCancellationOfComponentOrderLines()
           
 void testCreateNoHistoryEventForCancellationOfComponentOrderLines()
           
 void testDirectShipCustomerInitiatedCancelFullQuantity()
           
 void testDirectShipSupplierInitiatedCancelDoesNotFindLineThrowsException()
           
 void testDirectShipSupplierInitiatedCancelForLineInCancelRequestStatusDoesNotPublishNlaNotification()
           
 void testDirectShipSupplierInitiatedCancelForLineInFullfillingStatusPublishesNlaNotification()
           
 void testDirectShipSupplierInitiatedCancelFullQuantity()
           
 void testDirectShipSupplierInitiatedCancelFullQuantityForComp1AndComp2OfPackReservedPartiallyAtSkuLevel()
           
 void testDirectShipSupplierInitiatedCancelFullQuantityForComponent2OfPackReservedFullyAtSkuLevel()
           
 void testDirectShipSupplierInitiatedCancelFullQuantityForPackReservedAtPackLevel()
           
 void testDirectShipSupplierInitiatedCancelOnCancelledLine()
           
 void testDirectShipSupplierInitiatedCancelOnShippedLineThrowsException()
           
 void testDirectShipSupplierInitiatedCancelPartialQuantity()
           
 void testDirectShipSupplierInitiatedCancelsNothingForComp2OfPackReservedPartiallyAtSkuLevel()
           
 void testDirectShipUpdateShipDate()
           
 void testDirectShipUpdateShipDateForPackReservedAtPack()
           
 void testDirectShipUpdateShipDateOnCancelledLineThrowsException()
           
 void testDirectShipUpdateShipDateOnLineNotFoundThrowsException()
           
 void testDirectShipUpdateShipDateOnNonDirectShipLineThrowsException()
           
 void testDirectShipUpdateShipDateOnShippedLineThrowsException()
           
 void testDSSupplierInitiatedCancelsPartialQuantityForComp1AndComp2OfAComplexPackReservedFullyAtSkuLevel()
           
 void testInvalidDocumentTypeWithStatusOfSI()
           
 void testMulitipleLineWithSameSkuCancelConfirmationCancelLessThanFulfillingQty()
           
 void testMultipleNoInventoryPickExceptionsForFulfillingOrderLine()
           
 void testNoInventoryForBothSkuLinesForPackReservedAtSkuLevelBeforeShipConfirm()
           
 void testNoInventoryForOrderLineWithQtyGreaterThanFulfillingQtyThrowsException()
           
 void testNoInventoryForPartiallyBackorderdOrderLineWithFulfillingQty()
           
 void testNoInventoryForSkuLine2ForPackReservedAtSkuLevelBeforeShipConfirm()
           
 void testNoInventoryForSkuLine2ForPackReservedAtSkuLevelWithSku1CompQtyOf3()
           
 void testNoInventoryPickExceptionCreatesOrderHistoryEvent()
           
 void testNoInventoryPickExceptionForPackRsvdAtPackLevel()
           
 void testPackAndSkuWithSameSkuIdPickExceptionForSkuDoesNotCancelComponentLine()
           
 void testPickExcepForSkuRsvdAtOneWhThrowsExceptionWhenQtyGreaterThanFulfilling()
           
 void testPickExceptionForSkuWarehouseRsvdAtOneWarehouse()
           
 void testPickExceptionForSkuWarehouseRsvdAtTwoWarehousesForSamePhysicalWarehouse()
           
 void testPickExpForSkuWarehouseRsvdAtTwoPhysicalWarehousesThrowsExceptionWhenQtyGreaterThanFulfillingAtWh1()
           
 void testTwoOrderLinesPickExceptionForOneLineThenCancelOrder()
           
 void testValidDocumentTypeStatusOfEX()
           
 void testValidDocumentTypeWithStatusOfNI()
           
 void testValidDocumentTypeWithStatusOfSI()
           
 void testWarehouseInitiatedCancelFullQuantityForComp1AndComp2OfPackReservedPartiallyAtSkuLevel()
           
 void testWarehouseInitiatedCancelFullQuantityForPackReservedAtPackLevel()
           
 
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

StockStatusInjectorTest

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

testValidDocumentTypeWithStatusOfNI

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

testValidDocumentTypeStatusOfEX

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

testValidDocumentTypeWithStatusOfSI

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

testInvalidDocumentTypeWithStatusOfSI

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

testDirectShipUpdateShipDate

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

testDirectShipUpdateShipDateForPackReservedAtPack

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

testDirectShipUpdateShipDateOnNonDirectShipLineThrowsException

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

testDirectShipUpdateShipDateOnCancelledLineThrowsException

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

testDirectShipUpdateShipDateOnShippedLineThrowsException

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

testDirectShipUpdateShipDateOnLineNotFoundThrowsException

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

testDirectShipCustomerInitiatedCancelFullQuantity

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

testCreateNoHistoryEventForCancellationOfComponentOrderLines

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

testDirectShipSupplierInitiatedCancelDoesNotFindLineThrowsException

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

testDirectShipSupplierInitiatedCancelOnShippedLineThrowsException

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

testDirectShipSupplierInitiatedCancelFullQuantity

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

testDirectShipSupplierInitiatedCancelFullQuantityForPackReservedAtPackLevel

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

testCancelPackReservedAtSkuLevelsCancelsSkuLinesandAlsoPackLinesAfterSkuLineGoesToFulfilling

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

testCancelPackReservedAtPackLevelCancelsPackLineAfterPackLineGoesToFulfilling

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

testDirectShipSupplierInitiatedCancelFullQuantityForComponent2OfPackReservedFullyAtSkuLevel

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

testDirectShipSupplierInitiatedCancelPartialQuantity

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

testMulitipleLineWithSameSkuCancelConfirmationCancelLessThanFulfillingQty

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

testPickExceptionForSkuWarehouseRsvdAtOneWarehouse

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

testPickExceptionForSkuWarehouseRsvdAtTwoWarehousesForSamePhysicalWarehouse

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

testPickExpForSkuWarehouseRsvdAtTwoPhysicalWarehousesThrowsExceptionWhenQtyGreaterThanFulfillingAtWh1

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

testPickExcepForSkuRsvdAtOneWhThrowsExceptionWhenQtyGreaterThanFulfilling

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

testDirectShipSupplierInitiatedCancelForLineInCancelRequestStatusDoesNotPublishNlaNotification

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

testDirectShipSupplierInitiatedCancelForLineInFullfillingStatusPublishesNlaNotification

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

setReservedQuantity

public void setReservedQuantity(CustomerOrderLine line,
                                Quantity reservedQuantity)
                         throws java.lang.Exception
Throws:
java.lang.Exception

setBackorderedQuantity

public void setBackorderedQuantity(CustomerOrderLine line,
                                   Quantity backorderdQuantity)
                            throws java.lang.Exception
Throws:
java.lang.Exception

assertOrderAndOrderLinesState

public void assertOrderAndOrderLinesState(CustomerOrder order,
                                          CustomerOrderLine line,
                                          RDate estDeliveryDate,
                                          RDate shipmentDate)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testCancelPackReservedAtSkuLevelsCancelsSkuLinesandAlsoPackLines

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

testCancelPackReservedAtSkuLevelsCancelsSkuLinesandAlsoPackLinesForAPackConsistingMoreThan1CompQty

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

testDirectShipSupplierInitiatedCancelFullQuantityForComp1AndComp2OfPackReservedPartiallyAtSkuLevel

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

testDirectShipSupplierInitiatedCancelsNothingForComp2OfPackReservedPartiallyAtSkuLevel

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

testDSSupplierInitiatedCancelsPartialQuantityForComp1AndComp2OfAComplexPackReservedFullyAtSkuLevel

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

testWarehouseInitiatedCancelFullQuantityForPackReservedAtPackLevel

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

testPackAndSkuWithSameSkuIdPickExceptionForSkuDoesNotCancelComponentLine

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

testWarehouseInitiatedCancelFullQuantityForComp1AndComp2OfPackReservedPartiallyAtSkuLevel

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

testCreateHistoryEventForCancellationOfComponentOrderLines

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

testTwoOrderLinesPickExceptionForOneLineThenCancelOrder

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

testCancelOrderLineCancelQtyEqualsFulfillingQty

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

testCancelOrderLineCancelQtyGreaterThanFulfillingQtyThrowsException

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

testCancelOrderLineCancelQtyLessThanFulfillingQty

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

testDirectShipSupplierInitiatedCancelOnCancelledLine

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

testCancelPackLineFullfilledAtPackLevel

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

testMultipleNoInventoryPickExceptionsForFulfillingOrderLine

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

testNoInventoryForBothSkuLinesForPackReservedAtSkuLevelBeforeShipConfirm

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

testNoInventoryForOrderLineWithQtyGreaterThanFulfillingQtyThrowsException

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

testNoInventoryForPartiallyBackorderdOrderLineWithFulfillingQty

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

testNoInventoryForSkuLine2ForPackReservedAtSkuLevelBeforeShipConfirm

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

testNoInventoryForSkuLine2ForPackReservedAtSkuLevelWithSku1CompQtyOf3

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

testNoInventoryPickExceptionForPackRsvdAtPackLevel

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

testNoInventoryPickExceptionCreatesOrderHistoryEvent

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


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