com.retek.component.inventory
Class AtpTest

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

public class AtpTest
extends RetekTestCase


Field Summary
 
Fields inherited from class com.retek.commons.util.RetekTestCase
BEGIN_PROFILING, END_PROFILING
 
Constructor Summary
AtpTest(java.lang.String name)
           
 
Method Summary
 void doInitialSetUp()
           
 void doSetUp()
           
 void doTearDown()
           
 void testATPForStandardUomAndSellingUomDifferent()
           
 void testCalculateAtpChangeEquationBucketForStore()
           
 void testCalculateAtpChangeEquationIsAddedFlagForStore()
           
 void testCalculateAtpChangeEquationIsIncludedFlagForStore()
           
 void testCalculateATPForABanner()
           
 void testCalculateATPForABannerWithDefaultFulfillmentChannelTypeSysParamSet()
           
 void testCalculateATPForABannerWithDefaultFulfillmentChannelTypeSysParamSetWithANonExisitingChannelType()
           
 void testCalculateATPForABannerWithZeroStockAndZeroFA()
           
 void testCalculateATPForAInvalidBusinessInterfaceThrowsException()
           
 void testCalculateATPForANullReferenceThrowsException()
           
 void testCalculateATPForAStoreWithItemNLAWithNoStockandNoFA()
           
 void testCalculateATPForAStoreWithItemNLAWithNoStockButSomeFA()
           
 void testCalculateATPForAStoreWithItemNLAWithSomeStockandNoFA()
           
 void testCalculateATPForAStoreWithItemNotNLAButItemLocationIsInactiveMakesItemNLA()
           
 void testCalculateATPForAStoreWithZeroStockAndSomeFA()
           
 void testCalculateATPForDirectShipItemForABannerOrAChannelOrAStore()
           
 void testCalculateATPForDirectShipItemForABannerWithOneSupplierOutOfDateRange()
           
 void testCalculateATPForDirectShipItemWithNoAvailInSuppButSomeInTransit()
           
 void testCalculateATPForInactiveSkuForBanner()
           
 void testCalculateATPForInactiveSkuForChannel()
           
 void testCalculateATPForNonInventoriedOrderLine()
           
 void testCalculateATPQuantityForDirectShipItem()
           
 void testCalculateATPQuantityForDirectShipItemWithmoreThanOneSupplierInventoryForTheSameSupplier()
           
 void testCalculateATPQuantityForDirectShipPackWithSkusAtSupplier()
           
 void testCalculateATPQuantityForDirectShipPackWithZeroSkusAtSupplier()
           
 void testCalculateATPReturnsInventoryFromSystemParameterChannelType()
           
 void testCalculateForDifferentLocation()
           
 void testCalculateForInvalidSku()
           
 void testCalculateForInventoriedItemByRequestingLessThanATPQty()
           
 void testCalculateForInventoriedItemByRequestingMoreThanATPQty()
           
 void testCalculateForInventoriedItemByRequestingSameAsATPQty()
           
 void testCalculateForLocationOne()
           
 void testCalculateForLocationOneForPack()
           
 void testCalculateForLocationOneForPackWithEmptySellingUOM()
           
 void testCalculateForLocationOneForPackWithNullSellingUOM()
           
 void testCalculateForLocationOneForPackWithOddValues()
           
 void testCalculateForLocationOneWithNonBusinessDaysForCountry()
           
 void testCalculateForNonInventoriedItemWithoutRequestingQty()
           
 void testCalculateNegativeQuantity()
           
 void testCalculateNullQuantity()
           
 void testCalculateOnHandQuantityWithNegativeFutureAvailable()
           
 
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

AtpTest

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

testCalculateForLocationOne

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

testCalculateATPReturnsInventoryFromSystemParameterChannelType

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

testATPForStandardUomAndSellingUomDifferent

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

testCalculateForLocationOneForPack

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

testCalculateOnHandQuantityWithNegativeFutureAvailable

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

testCalculateForLocationOneForPackWithEmptySellingUOM

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

testCalculateForLocationOneForPackWithNullSellingUOM

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

testCalculateForLocationOneForPackWithOddValues

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

testCalculateForDifferentLocation

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

testCalculateATPForANullReferenceThrowsException

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

testCalculateATPForAInvalidBusinessInterfaceThrowsException

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

testCalculateATPForInactiveSkuForBanner

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

testCalculateATPForInactiveSkuForChannel

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

testCalculateATPForABanner

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

testCalculateATPForABannerWithDefaultFulfillmentChannelTypeSysParamSet

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

testCalculateATPForABannerWithDefaultFulfillmentChannelTypeSysParamSetWithANonExisitingChannelType

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

testCalculateATPForAStoreWithZeroStockAndSomeFA

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

testCalculateATPForDirectShipItemForABannerOrAChannelOrAStore

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

testCalculateATPQuantityForDirectShipItem

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

testCalculateATPQuantityForDirectShipItemWithmoreThanOneSupplierInventoryForTheSameSupplier

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

testCalculateATPQuantityForDirectShipPackWithZeroSkusAtSupplier

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

testCalculateATPQuantityForDirectShipPackWithSkusAtSupplier

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

testCalculateATPForDirectShipItemWithNoAvailInSuppButSomeInTransit

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

testCalculateATPForDirectShipItemForABannerWithOneSupplierOutOfDateRange

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

testCalculateATPForABannerWithZeroStockAndZeroFA

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

testCalculateATPForAStoreWithItemNLAWithNoStockButSomeFA

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

testCalculateATPForAStoreWithItemNLAWithNoStockandNoFA

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

testCalculateATPForAStoreWithItemNotNLAButItemLocationIsInactiveMakesItemNLA

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

testCalculateATPForAStoreWithItemNLAWithSomeStockandNoFA

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

testCalculateForInventoriedItemByRequestingSameAsATPQty

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

testCalculateForInventoriedItemByRequestingLessThanATPQty

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

testCalculateForInventoriedItemByRequestingMoreThanATPQty

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

testCalculateForNonInventoriedItemWithoutRequestingQty

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

testCalculateForInvalidSku

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

testCalculateNullQuantity

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

testCalculateNegativeQuantity

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

testCalculateAtpChangeEquationIsIncludedFlagForStore

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

testCalculateAtpChangeEquationIsAddedFlagForStore

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

testCalculateAtpChangeEquationBucketForStore

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

testCalculateATPForNonInventoriedOrderLine

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

testCalculateForLocationOneWithNonBusinessDaysForCountry

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


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