com.retek.component.customer
Class CustomerAddressTest

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

public class CustomerAddressTest
extends CustomerApiTestCase


Field Summary
 
Fields inherited from class com.retek.component.customer.CustomerApiTestCase
customerMgr, matchRuleMgr, user
 
Fields inherited from class com.retek.commons.util.RetekTestCase
BEGIN_PROFILING, END_PROFILING
 
Constructor Summary
CustomerAddressTest(java.lang.String name)
           
 
Method Summary
 void doSetUp()
           
 void doTearDown()
           
 void testAllCountryCodesHaveValidData()
           
 void testAsAddressMakesDefensiveCopy()
           
 void testBooleanSetterForDirtyFlagForCustomerAddress()
           
 void testCountryDescriptionIsName()
           
 void testCreateCustomerAddress()
           
 void testDefaultCountry()
           
 void testDuplicateShippingLabelsNotAllowed()
           
 void testExactlyOneDefaultCountryExists()
           
 void testFindCountryByCode()
           
 void testGetPostalCodeParts()
           
 void testMinimumShippingLabelLength()
           
 void testRequiredFieldsOnShippableAddress()
           
 void testStringSetterForDirtyFlagForAddress()
           
 void testStringSetterForDirtyFlagForCustomerAddress()
           
 void testUniqueAddressIds()
           
 void testValidateAddressCountryRequired()
           
 void testValidateAddressNeeded()
           
 void testValidateAddressNonShippableCountryRequiredFields()
           
 void testValidateNonShippableCountryIncompleteAddressAllowed()
           
 
Methods inherited from class com.retek.commons.util.RetekTestCase
assertBusinessException, assertBusinessExceptionAttribute, assertContainsString, assertDateEqualsIgnoreTime, assertDateNotEqualsIgnoreTime, assertDateTimeEquals, assertEquals, assertEqualValuesDeep, assertEqualValuesDeep, assertEqualValuesDeep, assertNotEquals, assertNotNullAndEquals, assertNull, assertRetekEquals, assertRibException, assertSize, assertStateEquals, assertStateEquals, assertStateNotEquals, assertStateNotEquals, assertXmlEquals, doClassSetUp, doInitialSetUp, doPackageSetUp, findDto, findDto, getContext, getReadBackContext, getReferences, getReferences, isOracleTestCase, resetSystemRDateToBusinessDay, run, runTest, setSecurityEncryption, setTaxSimulate, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, 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

CustomerAddressTest

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

doSetUp

public void doSetUp()
             throws java.lang.Exception
Overrides:
doSetUp in class CustomerApiTestCase
Throws:
java.lang.Exception

doTearDown

public void doTearDown()
                throws java.lang.Exception
Overrides:
doTearDown in class CustomerApiTestCase
Throws:
java.lang.Exception

testCreateCustomerAddress

public void testCreateCustomerAddress()
                               throws SystemException
Throws:
SystemException

testUniqueAddressIds

public void testUniqueAddressIds()
                          throws SystemException
Throws:
SystemException

testDefaultCountry

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

testStringSetterForDirtyFlagForAddress

public void testStringSetterForDirtyFlagForAddress()
                                            throws SystemException
Throws:
SystemException

testStringSetterForDirtyFlagForCustomerAddress

public void testStringSetterForDirtyFlagForCustomerAddress()
                                                    throws SystemException
Throws:
SystemException

testBooleanSetterForDirtyFlagForCustomerAddress

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

testGetPostalCodeParts

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

testAsAddressMakesDefensiveCopy

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

testExactlyOneDefaultCountryExists

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

testAllCountryCodesHaveValidData

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

testValidateAddressCountryRequired

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

testValidateAddressNeeded

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

testFindCountryByCode

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

testValidateNonShippableCountryIncompleteAddressAllowed

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

testValidateAddressNonShippableCountryRequiredFields

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

testCountryDescriptionIsName

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

testMinimumShippingLabelLength

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

testDuplicateShippingLabelsNotAllowed

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

testRequiredFieldsOnShippableAddress

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


Copyright © 2005 Retek Inc. All Rights Reserved. - Generated at Fri, 01/21/2005 14:25