com.retek.component.media
Class MediaTest

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

public class MediaTest
extends RetekTestCase


Field Summary
 
Fields inherited from class com.retek.commons.util.RetekTestCase
BEGIN_PROFILING, END_PROFILING
 
Constructor Summary
MediaTest(java.lang.String arg0)
           
 
Method Summary
 void doInitialSetUp()
           
 void doSetUp()
           
 void doTearDown()
           
 void testActiveDateValidation()
           
 void testAddDropCodeValidation()
           
 void testAddDuplicateSellingItemThrowsException()
           
 void testAdjustShippingRateTableForActiveMedia()
           
 void testAdjustShippingRateTableForReleasedMedia()
           
 void testAdjustShippingRateTableForWorksheetMedia()
           
 void testAdjustShippingRateTableNotAllowedForNoLongerAvailableMedia()
           
 void testCalculateShippingCharge()
           
 void testClearMediaShippingRates()
           
 void testCreateDisplayCode()
           
 void testCreateModifySubmit()
           
 void testDefaultShippingRateOnMedia()
           
 void testDefaultWarehouseValidation()
           
 void testGetOrderableStatus()
           
 void testGetSellingItemBasedOnItemId()
           
 void testGetSellingSkuCount()
           
 void testGetShippingChargeOutsideRange()
           
 void testGetShippingRateTableForMediaByEffectiveDate()
           
 void testGetTotalArea()
           
 void testGetTotalCirculation()
           
 void testInvalidResponseRateThrowsException()
           
 void testMediaWithoutSellingItemsThrowsException()
           
 void testModifySourceCodeOnMediaInWorksheetStatusIsPersisted()
           
 void testMultiStyleSellingItemNotCountedAsDuplicate()
           
 void testPriceEffectiveStartDateValidation()
           
 void testRemoveActiveMedia()
           
 void testRemoveOnlyShippingRate()
           
 void testRemoveReleasedMedia()
           
 void testRemoveSellingItem()
           
 void testRemoveSellingItemFromActiveMedia()
           
 void testRemoveSellingItemFromReleasedMedia()
           
 void testRemoveSellingSkuFromActiveMedia()
           
 void testRemoveSellingSkuFromReleasedMedia()
           
 void testRemoveShippingRate()
           
 void testRemoveShippingRateWithHighestRange()
           
 void testRemoveShippingRateWithLowestRange()
           
 void testRemoveWorksheetMedia()
           
 void testRemoveWorksheetMediaWithSellingItems()
           
 void testSellingItemsWithEmptyDepictionThrowsException()
           
 void testSellingItemWithBlankDescriptionThrowsException()
           
 void testSellingSkusWithWLessThanZeroPriceThrowsException()
           
 void testSellingSkusWithZeroPriceWorks()
           
 void testShippingRateAdd()
           
 void testShippingRatesCopyToMedia()
           
 void testShippingRatesCopyToMultipleMedia()
           
 void testShippingRatesNullMaximumThrowsNullPointer()
           
 void testShippingRatesNullMinimumThrowsNullPointer()
           
 void testShippingRateTableStatusForMedia()
           
 void testSubmitActiveDateBeforePriceEffectiveStartDateThrowsException()
           
 void testSubmitDescriptionLengthGrteaterThan35CharactersThrowsException()
           
 void testSubmitInHomeDateBeforeActiveDateThrowsException()
           
 void testSubmitMediaYearBogusThrowsException()
           
 void testSubmitMediaYearGreaterThanCurrent()
           
 void testSubmitNoActiveDateThrowsException()
           
 void testSubmitNoMediaDescriptionThrowsException()
           
 void testSubmitNoMediaSeasonThrowsException()
           
 void testSubmitNoMediaStatusThrowsException()
           
 void testSubmitNoMediaTypeThrowsException()
           
 void testSubmitNoMediaYearThrowsException()
           
 void testSubmitNoPriceEffectiveEndDateThrowsException()
           
 void testSubmitNoPriceEffectiveStartDateThrowsException()
           
 void testSubmitNoReleaseDateThrowsException()
           
 void testSubmitNoVirtualStoreThrowsException()
           
 void testSubmitPriceEffectiveEndDateBeforeStartDateThrowsException()
           
 void testSubmitReleaseDateBeforeActiveDateThrowsException()
           
 void testSubmitWithItemThatHasNoVirtualStoreEqualToMediaVirtualStoreThrowsException()
           
 void testSubmitWithItemThatHasNoVirtualStoreThrowsException()
           
 void testUpdateDropCodeValidation()
           
 void testUpdateDropCodeValidationOnMediaSubmit()
           
 
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

MediaTest

public MediaTest(java.lang.String arg0)
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

testCreateModifySubmit

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

testDefaultWarehouseValidation

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

testInvalidResponseRateThrowsException

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

testSubmitNoActiveDateThrowsException

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

testSubmitNoReleaseDateThrowsException

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

testSubmitNoPriceEffectiveStartDateThrowsException

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

testSubmitNoPriceEffectiveEndDateThrowsException

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

testSubmitMediaYearGreaterThanCurrent

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

testSubmitMediaYearBogusThrowsException

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

testSubmitNoMediaYearThrowsException

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

testSubmitWithItemThatHasNoVirtualStoreThrowsException

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

testSubmitWithItemThatHasNoVirtualStoreEqualToMediaVirtualStoreThrowsException

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

testSubmitNoVirtualStoreThrowsException

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

testSubmitNoMediaSeasonThrowsException

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

testSubmitNoMediaTypeThrowsException

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

testSubmitNoMediaDescriptionThrowsException

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

testSubmitNoMediaStatusThrowsException

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

testSubmitInHomeDateBeforeActiveDateThrowsException

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

testSubmitActiveDateBeforePriceEffectiveStartDateThrowsException

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

testSubmitReleaseDateBeforeActiveDateThrowsException

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

testSubmitPriceEffectiveEndDateBeforeStartDateThrowsException

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

testSubmitDescriptionLengthGrteaterThan35CharactersThrowsException

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

testGetTotalCirculation

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

testGetTotalArea

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

testGetSellingSkuCount

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

testGetSellingItemBasedOnItemId

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

testAddDuplicateSellingItemThrowsException

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

testMultiStyleSellingItemNotCountedAsDuplicate

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

testRemoveSellingItem

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

testDefaultShippingRateOnMedia

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

testShippingRatesCopyToMedia

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

testShippingRatesCopyToMultipleMedia

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

testShippingRateTableStatusForMedia

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

testAdjustShippingRateTableForWorksheetMedia

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

testAdjustShippingRateTableForActiveMedia

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

testGetShippingRateTableForMediaByEffectiveDate

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

testAdjustShippingRateTableForReleasedMedia

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

testAdjustShippingRateTableNotAllowedForNoLongerAvailableMedia

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

testClearMediaShippingRates

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

testRemoveShippingRate

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

testRemoveShippingRateWithHighestRange

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

testRemoveShippingRateWithLowestRange

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

testRemoveOnlyShippingRate

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

testShippingRateAdd

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

testShippingRatesNullMaximumThrowsNullPointer

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

testShippingRatesNullMinimumThrowsNullPointer

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

testCalculateShippingCharge

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

testGetShippingChargeOutsideRange

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

testAddDropCodeValidation

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

testUpdateDropCodeValidation

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

testUpdateDropCodeValidationOnMediaSubmit

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

testPriceEffectiveStartDateValidation

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

testActiveDateValidation

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

testMediaWithoutSellingItemsThrowsException

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

testSellingSkusWithWLessThanZeroPriceThrowsException

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

testSellingSkusWithZeroPriceWorks

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

testSellingItemWithBlankDescriptionThrowsException

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

testSellingItemsWithEmptyDepictionThrowsException

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

testCreateDisplayCode

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

testModifySourceCodeOnMediaInWorksheetStatusIsPersisted

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

testRemoveSellingItemFromActiveMedia

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

testRemoveSellingItemFromReleasedMedia

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

testRemoveSellingSkuFromActiveMedia

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

testRemoveSellingSkuFromReleasedMedia

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

testRemoveWorksheetMedia

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

testRemoveWorksheetMediaWithSellingItems

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

testRemoveActiveMedia

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

testRemoveReleasedMedia

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

testGetOrderableStatus

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


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