com.retek.component.inventory
Class ReservationTest

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

public class ReservationTest
extends RetekTestCase


Field Summary
 
Fields inherited from class com.retek.commons.util.RetekTestCase
BEGIN_PROFILING, END_PROFILING
 
Constructor Summary
ReservationTest(java.lang.String name)
           
 
Method Summary
 void doInitialSetUp()
           
 void doSetUp()
           
 void doTearDown()
           
 void testBannerChannelTypeReserveTwoReservationsAtDifferentStores()
           
 void testBannerChannelTypeReserveWithMultipleWarehousesAtDifferentChannels()
           
 void testBannerChannelTypeReserveWithMultipleWarehousesAtDifferentChannelsBoGreaterThanFuture()
           
 void testBannerChannelTypeReserveWithSomeQtyAvailableAndRestBackOrdered()
           
 void testCalculateEstimatedShipDateFor2PosAndAlsoSomethingInStock()
           
 void testCalculateEstimatedShipDateFor2PosAndSingleInTransitAndBOQtyIsZero()
           
 void testCalculateEstimatedShipDateFor2PosWithBackOrderedGreaterThanZero()
           
 void testCalculateEstimatedShipDateFor2PosWithBothHavingReceivedQty()
           
 void testCalculateEstimatedShipDateForDirectShipItem()
           
 void testCalculateEstimatedShipDateForDirectShipItemWithNoSupplierLeadTime()
           
 void testCalculateEstimatedShipDateForSinglePo2PoLineDatesAndSingleInTransit()
           
 void testCalculateEstimatedShipDateForSinglePoSingleInTransit()
           
 void testCalculateEstimatedShipDateWithAWareHouseOfDiferentVirtualStoreHavingMorePOs()
           
 void testEstimatedShipmentDateForNoLongerAvailableItem()
           
 void testReserve1WithQtyAvailableAnd1WithQtyNotAvailable()
           
 void testReserveDatesWithDifferentVirtualStoresWithDifferentBanners()
           
 void testReserveDirectShipableWithFALessThanReq()
           
 void testReserveDirectShipableWithFALessThanReqAndSomeAvailForRsvationAndPrimarySupplierNonDirectShip()
           
 void testReserveDirectShipableWithFALessThanReqAndZeroAvailForRsvationAndPrimarySupplierDirectShip()
           
 void testReserveDirectShipableWithFALessThanReqAndZeroAvailForRsvationAndPrimarySupplierNonDirectShip()
           
 void testReserveDirectShipableWithNoQtyAvailable()
           
 void testReserveDirectShipableWithNoQtyAvailableAndNoFutureAndPrimSuppHasNotEnough()
           
 void testReserveDirectShipableWithPartialQtyAvailableAndNoFutureAndPrimSuppHasNotEnough()
           
 void testReserveDirectShipableWithPartialQtyAvailableAndSomeFutureAndPrimSuppHasNotEnough()
           
 void testReserveDirectShipableWithQtyAvailable()
           
 void testReserveDSFullyAndRsvAgainShouldNotBeDS()
           
 void testReserveDSWithNoItemSchedulesOrNoOrderSchedules()
           
 void testReserveDSWithOneItemScheduleButNoDirectShipItemSupplierAndNoFA()
           
 void testReserveDSWithOneItemScheduleButNoDirectShipItemSupplierAndSomeFA()
           
 void testReserveDSWithOnlyItemCallSchedulesForAllDays()
           
 void testReserveDSWithOnlyOneItemScheduleForOneDay()
           
 void testReserveDSWithOnlyOneOrderSchedule()
           
 void testReserveDSWithPartialQtyAvailableAndPrimSuppHasNotEnoughButSecHasEnough()
           
 void testReserveDSWithPartialQtyAvailableButPrimSuppHasEnough()
           
 void testReserveDSWithPartialQtyAvailAndPrimAndSecHasEnoughButBothFallsOutOfTime()
           
 void testReserveDSWithPartialQtyAvailAndPrimAndSecHasNotEnough()
           
 void testReserveDSWithPartialQtyAvailAndPrimSuppHasEnoughButFallsOutOfDateAndSecHasEnough()
           
 void testReserveDSWithPartialQtyAvailAndPrimSuppHasEnoughButFallsOutOfTimeAndSecHasEnough()
           
 void testReserveForNonInventoriedItem()
           
 void testReserveSkuWithNoStockAndNegativeFA()
           
 void testReserveUsesChannelsBasedOnSystemParameterChannelTypeForComponentLevelReservations()
           
 void testReserveUsesChannelsBasedOnSystemParameterChannelTypeForPackLevelReservations()
           
 void testReserveUsesChannelsBasedOnSystemParameterChannelTypeForSkuReservations()
           
 void testReserveWithActiveStatusAndNlaAndAvailableBackorder()
           
 void testReserveWithActiveStatusAndNotNlaAndAvailableBackorder()
           
 void testReserveWithAvailableBackorder()
           
 void testReserveWithFractionalQuantity()
           
 void testReserveWithInactiveStatusAndAvailableBackorder()
           
 void testReserveWithInactiveStatusAndNoBackorder()
           
 void testReserveWithInactiveStatusAndNotNlaAndPartialAvailableBackorder()
           
 void testReserveWithInvalidLocation()
           
 void testReserveWithLessThanAvailable()
           
 void testReserveWithNegativeQuantity()
           
 void testReserveWithNoAvailableBackOrder()
           
 void testReserveWithNoLongerAvailableIndicator()
           
 void testReserveWithNoLongerAvailableIndicatorWithPartialBackOrdering()
           
 void testReserveWithNoLongerAvailableIndicatorWithPartialBackOrderingMultipleChannel()
           
 void testReserveWithNoLongerAvailableIndicatorWithPartialQtyOnHand()
           
 void testReserveWithNoLongerAvailableIndicatorWithPartialResrveAndPartialBackOrdering()
           
 void testReserveWithNoQtyAvailable()
           
 void testReserveWithoutLocation()
           
 void testReserveWithoutQuantity()
           
 void testReserveWithPartialQtyAvailable()
           
 void testReserveWithQtyAvailable()
           
 void testReserveWithSomeBOAndWithStandardUomAndSellingUomDifferent()
           
 void testReserveWithSomeQtyAvailableAndRestBackOrdered()
           
 void testReserveWithStandardUomAndSellingUomDifferent()
           
 void testReserveWithTwoVirtualStoresWillUseBothStoresDataInDateCalculation()
           
 
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

ReservationTest

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

doInitialSetUp

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

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

testReserveWithSomeQtyAvailableAndRestBackOrdered

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

testReserveWithNoLongerAvailableIndicatorWithPartialBackOrderingMultipleChannel

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

testReserveDatesWithDifferentVirtualStoresWithDifferentBanners

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

testReserveWithTwoVirtualStoresWillUseBothStoresDataInDateCalculation

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

testReserveUsesChannelsBasedOnSystemParameterChannelTypeForPackLevelReservations

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

testReserveUsesChannelsBasedOnSystemParameterChannelTypeForComponentLevelReservations

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

testReserveUsesChannelsBasedOnSystemParameterChannelTypeForSkuReservations

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

testReserveWithQtyAvailable

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

testReserveWithNoAvailableBackOrder

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

testReserveWithNoLongerAvailableIndicatorWithPartialBackOrdering

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

testReserveWithNoLongerAvailableIndicatorWithPartialResrveAndPartialBackOrdering

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

testReserveWithNoLongerAvailableIndicatorWithPartialQtyOnHand

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

testReserve1WithQtyAvailableAnd1WithQtyNotAvailable

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

testReserveWithLessThanAvailable

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

testReserveWithPartialQtyAvailable

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

testReserveWithNoQtyAvailable

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

testReserveForNonInventoriedItem

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

testReserveWithoutQuantity

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

testReserveWithNegativeQuantity

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

testReserveWithFractionalQuantity

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

testReserveWithoutLocation

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

testReserveWithInvalidLocation

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

testReserveWithInactiveStatusAndNoBackorder

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

testReserveWithInactiveStatusAndAvailableBackorder

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

testReserveWithActiveStatusAndNotNlaAndAvailableBackorder

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

testReserveWithAvailableBackorder

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

testReserveWithInactiveStatusAndNotNlaAndPartialAvailableBackorder

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

testReserveWithNoLongerAvailableIndicator

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

testReserveWithActiveStatusAndNlaAndAvailableBackorder

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

testReserveDirectShipableWithQtyAvailable

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

testReserveDirectShipableWithNoQtyAvailable

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

testReserveDirectShipableWithFALessThanReqAndZeroAvailForRsvationAndPrimarySupplierNonDirectShip

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

testReserveDirectShipableWithFALessThanReqAndSomeAvailForRsvationAndPrimarySupplierNonDirectShip

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

testReserveDirectShipableWithFALessThanReqAndZeroAvailForRsvationAndPrimarySupplierDirectShip

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

testReserveDirectShipableWithFALessThanReq

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

testReserveDSWithPartialQtyAvailableButPrimSuppHasEnough

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

testReserveDSFullyAndRsvAgainShouldNotBeDS

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

testReserveDSWithPartialQtyAvailableAndPrimSuppHasNotEnoughButSecHasEnough

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

testReserveDSWithPartialQtyAvailAndPrimSuppHasEnoughButFallsOutOfDateAndSecHasEnough

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

testReserveDSWithPartialQtyAvailAndPrimSuppHasEnoughButFallsOutOfTimeAndSecHasEnough

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

testReserveDSWithPartialQtyAvailAndPrimAndSecHasEnoughButBothFallsOutOfTime

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

testReserveDSWithPartialQtyAvailAndPrimAndSecHasNotEnough

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

testReserveDirectShipableWithNoQtyAvailableAndNoFutureAndPrimSuppHasNotEnough

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

testReserveDirectShipableWithPartialQtyAvailableAndNoFutureAndPrimSuppHasNotEnough

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

testReserveDirectShipableWithPartialQtyAvailableAndSomeFutureAndPrimSuppHasNotEnough

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

testCalculateEstimatedShipDateForSinglePoSingleInTransit

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

testCalculateEstimatedShipDateForSinglePo2PoLineDatesAndSingleInTransit

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

testCalculateEstimatedShipDateFor2PosAndSingleInTransitAndBOQtyIsZero

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

testCalculateEstimatedShipDateFor2PosWithBothHavingReceivedQty

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

testCalculateEstimatedShipDateFor2PosWithBackOrderedGreaterThanZero

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

testCalculateEstimatedShipDateFor2PosAndAlsoSomethingInStock

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

testCalculateEstimatedShipDateWithAWareHouseOfDiferentVirtualStoreHavingMorePOs

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

testEstimatedShipmentDateForNoLongerAvailableItem

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

testCalculateEstimatedShipDateForDirectShipItem

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

testReserveDSWithOnlyItemCallSchedulesForAllDays

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

testReserveDSWithOnlyOneOrderSchedule

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

testReserveDSWithOnlyOneItemScheduleForOneDay

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

testReserveDSWithNoItemSchedulesOrNoOrderSchedules

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

testReserveDSWithOneItemScheduleButNoDirectShipItemSupplierAndNoFA

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

testReserveDSWithOneItemScheduleButNoDirectShipItemSupplierAndSomeFA

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

testCalculateEstimatedShipDateForDirectShipItemWithNoSupplierLeadTime

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

testReserveWithStandardUomAndSellingUomDifferent

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

testReserveWithSomeBOAndWithStandardUomAndSellingUomDifferent

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

testReserveSkuWithNoStockAndNegativeFA

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

testBannerChannelTypeReserveWithMultipleWarehousesAtDifferentChannels

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

testBannerChannelTypeReserveWithMultipleWarehousesAtDifferentChannelsBoGreaterThanFuture

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

testBannerChannelTypeReserveTwoReservationsAtDifferentStores

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

testBannerChannelTypeReserveWithSomeQtyAvailableAndRestBackOrdered

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


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