com.retek.component.item
Class ItemManagerTest

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

public class ItemManagerTest
extends RetekTestCase


Field Summary
 
Fields inherited from class com.retek.commons.util.RetekTestCase
BEGIN_PROFILING, END_PROFILING
 
Constructor Summary
ItemManagerTest(java.lang.String name)
           
 
Method Summary
 void doInitialSetUp()
           
 void doSetUp()
           
 void doTearDown()
           
 void testAddAndUpdateItemCollectionCode()
           
 void testAddDuplicateItemCollectionThrowsException()
           
 void testBuildAndReadPackInstance()
           
 void testBuildDepartmentInstance()
           
 void testBuildDepartmentInstanceWithNullOrEmptyDescription()
           
 void testBuildDifferentiatorGroupHeaderInstance()
           
 void testBuildDifferentiatorInstance()
           
 void testBuildDifferentiatorTwiceThrowsException()
           
 void testBuildDifferentiatorTypeInstance()
           
 void testBuildDifferentiatorTypeTwiceThrowsException()
           
 void testBuildItemLocationInstanceForPack()
           
 void testBuildItemLocationInstanceForSku()
           
 void testBuildItemLocationInstanceTwiceThrowsException()
           
 void testBuildItemSupplierInstanceForPack()
           
 void testBuildItemSupplierInstanceForSku()
           
 void testBuildPackInstance()
           
 void testBuildPackTwiceThrowsException()
           
 void testBuildPersistAndReadItemCollection()
           
 void testBuildSkuInstance()
           
 void testBuildStyleInstance()
           
 void testBuildUdaHeaderInstance()
           
 void testBuildUdaValueInstance()
           
 void testCreateAndReadItem()
           
 void testCreateDifferentiatorGroupHeaderTwiceThrowsException()
           
 void testCreateReadDepartment()
           
 void testCreateSkuTwiceThrowsException()
           
 void testCreateStyleTwiceThrowsException()
           
 void testCreateUdaHeaderTwiceThrowsException()
           
 void testCreateUdaValueTwiceThrowsException()
           
 void testFindAllDepartments()
           
 void testFindAllItemCollections()
           
 void testFindAllSellableItems()
           
 void testFindAllSkus()
           
 void testFindAllStyle()
           
 void testFindAllStylesAndPacks()
           
 void testFindBannerForItems()
           
 void testFindIntersectingBannersForItems()
           
 void testFindItemClassesByDepartment()
           
 void testFindItemCollectionByCode()
           
 void testFindItemCollectionByInvalidCodeReturnsNull()
           
 void testFindItemSubclassesByDepartmentAndClass()
           
 void testFindItemSupplierBySupplier()
           
 void testFindPackByChannelCriteria()
           
 void testFindPackByIdCriteria()
           
 void testFindPackIdsByCriteria()
           
 void testFindPrimaryItemSupplierByItem()
           
 void testFindSellableItemPackByIdCriteria()
           
 void testFindSellableItemSkuByIdCriteria()
           
 void testFindSkuByIdCriteria()
           
 void testFindSkuIdsByCriteria()
           
 void testFindStyleByChannelCriteria()
           
 void testFindStyleByIdCriteria()
           
 void testFindStyleIdsByCriteria()
           
 void testFindThresholdableInventoryItemBySku()
           
 void testFindThresholdableInventoryItemByStyleId()
           
 void testFindThresholdableStylesAndPacksByStyleIdOrPackId()
           
 void testGetItemFreeFormUdaForFreeFormUdaIdOnItem()
           
 void testGetUdaValueForUdaValueIdOnItem()
           
 void testIsSkuOrStyle()
           
 void testItemBusinessException()
           
 void testReadDifferentiatorTypeWithNull()
           
 void testReadDifferentiatorWithNull()
           
 void testReadInvalidDepartmentThrowsNotFound()
           
 void testReadInvalidDifferentiatorGroupHeaderCausesNotFound()
           
 void testReadInvalidDifferentiatorThrowsNotFound()
           
 void testReadInvalidDifferentiatorTypeThrowsNotFound()
           
 void testReadInvalidPackThrowsNotFound()
           
 void testReadInvalidSkuThrowsNotFound()
           
 void testReadInvalidStyleThrowsNotFound()
           
 void testReadInvalidUdaHeaderCausesNotFound()
           
 void testReadInvalidUdaValueCausesNotFound()
           
 void testReadItemsWithIds()
           
 void testReadItemWithId()
           
 void testSearchPacksByCriteria()
           
 void testSearchSkusByCriteria()
           
 void testSearchStylesByCriteria()
           
 void testUpdateNonExistentItemCollectionThrowsException()
           
 
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

ItemManagerTest

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

testFindItemClassesByDepartment

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

testFindItemSubclassesByDepartmentAndClass

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

testBuildStyleInstance

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

testCreateStyleTwiceThrowsException

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

testFindAllStyle

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

testFindStyleByIdCriteria

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

testSearchStylesByCriteria

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

testFindStyleIdsByCriteria

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

testFindPackIdsByCriteria

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

testFindStyleByChannelCriteria

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

testReadInvalidStyleThrowsNotFound

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

testBuildSkuInstance

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

testCreateSkuTwiceThrowsException

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

testFindAllSkus

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

testFindSkuByIdCriteria

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

testSearchSkusByCriteria

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

testFindSkuIdsByCriteria

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

testReadInvalidSkuThrowsNotFound

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

testIsSkuOrStyle

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

testReadItemWithId

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

testReadItemsWithIds

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

testFindItemSupplierBySupplier

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

testFindPrimaryItemSupplierByItem

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

testCreateAndReadItem

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

testGetUdaValueForUdaValueIdOnItem

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

testGetItemFreeFormUdaForFreeFormUdaIdOnItem

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

testBuildDifferentiatorInstance

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

testBuildDifferentiatorTwiceThrowsException

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

testReadInvalidDifferentiatorThrowsNotFound

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

testReadDifferentiatorWithNull

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

testBuildDifferentiatorTypeInstance

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

testBuildDifferentiatorTypeTwiceThrowsException

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

testReadInvalidDifferentiatorTypeThrowsNotFound

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

testReadDifferentiatorTypeWithNull

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

testBuildDifferentiatorGroupHeaderInstance

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

testCreateDifferentiatorGroupHeaderTwiceThrowsException

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

testReadInvalidDifferentiatorGroupHeaderCausesNotFound

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

testBuildUdaHeaderInstance

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

testCreateUdaHeaderTwiceThrowsException

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

testReadInvalidUdaHeaderCausesNotFound

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

testBuildUdaValueInstance

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

testCreateUdaValueTwiceThrowsException

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

testReadInvalidUdaValueCausesNotFound

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

testBuildItemSupplierInstanceForSku

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

testBuildItemSupplierInstanceForPack

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

testBuildItemLocationInstanceForSku

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

testBuildItemLocationInstanceForPack

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

testBuildItemLocationInstanceTwiceThrowsException

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

testBuildPackInstance

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

testBuildAndReadPackInstance

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

testBuildPackTwiceThrowsException

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

testReadInvalidPackThrowsNotFound

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

testBuildDepartmentInstanceWithNullOrEmptyDescription

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

testBuildDepartmentInstance

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

testCreateReadDepartment

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

testReadInvalidDepartmentThrowsNotFound

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

testFindAllDepartments

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

testFindAllStylesAndPacks

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

testFindAllSellableItems

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

testFindSellableItemSkuByIdCriteria

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

testFindSellableItemPackByIdCriteria

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

testFindPackByIdCriteria

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

testFindPackByChannelCriteria

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

testSearchPacksByCriteria

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

testFindIntersectingBannersForItems

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

testFindBannerForItems

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

testFindThresholdableStylesAndPacksByStyleIdOrPackId

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

testFindThresholdableInventoryItemByStyleId

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

testFindThresholdableInventoryItemBySku

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

testBuildPersistAndReadItemCollection

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

testFindItemCollectionByCode

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

testFindItemCollectionByInvalidCodeReturnsNull

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

testAddAndUpdateItemCollectionCode

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

testAddDuplicateItemCollectionThrowsException

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

testUpdateNonExistentItemCollectionThrowsException

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

testFindAllItemCollections

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

testItemBusinessException

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


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