Class DefaultCustomerAccountServiceTest

java.lang.Object
de.hybris.platform.commerceservices.customer.impl.DefaultCustomerAccountServiceTest

@UnitTest public class DefaultCustomerAccountServiceTest extends Object
JUnit test suite for DefaultCustomerAccountService
  • Field Details

  • Constructor Details

    • DefaultCustomerAccountServiceTest

      public DefaultCustomerAccountServiceTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • testAddPaymentInfoWhenCustomerIsNull

      public void testAddPaymentInfoWhenCustomerIsNull()
    • testAddPaymentInfoWhenInfoIsNull

      public void testAddPaymentInfoWhenInfoIsNull()
    • testAddPaymentInfo

      public void testAddPaymentInfo()
    • testAddCreditCardPaymentInfoWhenCurrencyIsNull

      public void testAddCreditCardPaymentInfoWhenCurrencyIsNull()
    • testAddCreditCardPaymentInfo

      public void testAddCreditCardPaymentInfo()
    • testSetDefaultPaymentInfoWhenCustomerIsNull

      public void testSetDefaultPaymentInfoWhenCustomerIsNull()
    • testSetDefaultPaymentInfoWhenPaymentIsNull

      public void testSetDefaultPaymentInfoWhenPaymentIsNull()
    • testSetDefaultPaymentInfo

      public void testSetDefaultPaymentInfo()
    • testDeleteCCPaymentInfoWhenCustomerIsNull

      public void testDeleteCCPaymentInfoWhenCustomerIsNull()
    • testDeleteCCPaymentInfoWhenCreditCardIsNull

      public void testDeleteCCPaymentInfoWhenCreditCardIsNull()
    • testDeleteCCPaymentInfoWhenCreditCardDoesNotBelongToCustomer

      public void testDeleteCCPaymentInfoWhenCreditCardDoesNotBelongToCustomer()
    • testDeleteCCPaymentInfo

      public void testDeleteCCPaymentInfo()
    • testGetTitles

      public void testGetTitles()
    • testGetAddressBookEntriesWhenCustomerIsNull

      public void testGetAddressBookEntriesWhenCustomerIsNull()
    • testGetAllAddressEntries

      public void testGetAllAddressEntries()
    • testGetAddressBookEntries

      public void testGetAddressBookEntries()
    • testSaveAddressEntryWhenCustomerIsNull

      public void testSaveAddressEntryWhenCustomerIsNull()
    • testSaveAddressEntryWhenAddressIsNull

      public void testSaveAddressEntryWhenAddressIsNull()
    • testSaveAddressEntry

      public void testSaveAddressEntry()
    • testSaveAddressEntryAlienAddress

      public void testSaveAddressEntryAlienAddress()
    • testDeleteAddressEntryWhenAddressIsNull

      public void testDeleteAddressEntryWhenAddressIsNull()
    • testDeleteAddressEntryWhenCustomerIsNull

      public void testDeleteAddressEntryWhenCustomerIsNull()
    • testDeleteAddressEntryWhenAddressIsAlien

      public void testDeleteAddressEntryWhenAddressIsAlien()
    • testDeleteAddressEntryWhenAddress

      public void testDeleteAddressEntryWhenAddress()
    • testSetDefaultAddressEntryWhenAddressIsNull

      public void testSetDefaultAddressEntryWhenAddressIsNull()
    • testSetDefaultAddressEntryWhenCustomerIsNull

      public void testSetDefaultAddressEntryWhenCustomerIsNull()
    • testSetDefaultAddressEntry

      public void testSetDefaultAddressEntry()
    • testUpdatePwdInv

      public void testUpdatePwdInv() throws TokenInvalidatedException
      Throws:
      TokenInvalidatedException
    • testUpdatePwdInv2

      public void testUpdatePwdInv2() throws TokenInvalidatedException
      Throws:
      TokenInvalidatedException
    • testUpdatePwd

      public void testUpdatePwd() throws TokenInvalidatedException
      Throws:
      TokenInvalidatedException
    • testUpdatePwdParams

      public void testUpdatePwdParams() throws TokenInvalidatedException
      Throws:
      TokenInvalidatedException
    • testUpdatePwdExpiry

      public void testUpdatePwdExpiry() throws TokenInvalidatedException
      Throws:
      TokenInvalidatedException
    • consentsNotAppliedToNonAnonymousUser

      public void consentsNotAppliedToNonAnonymousUser() throws DuplicateUidException
      Throws:
      DuplicateUidException
    • consentsNotAppliedWithSessionFlagNotSet

      public void consentsNotAppliedWithSessionFlagNotSet() throws DuplicateUidException
      Throws:
      DuplicateUidException
    • sessionConsentsGetApplied

      public void sessionConsentsGetApplied() throws DuplicateUidException
      Throws:
      DuplicateUidException
    • sessionConsentsNotApplied

      public void sessionConsentsNotApplied() throws DuplicateUidException
      Throws:
      DuplicateUidException
    • testRegister

      public void testRegister() throws DuplicateUidException
      Throws:
      DuplicateUidException
    • testGuestRegister

      public void testGuestRegister() throws DuplicateUidException
      Throws:
      DuplicateUidException
    • getMatcher

      protected AbstractCommerceUserEvent getMatcher(CustomerModel customer, String token)
    • testForgottenPwd

      public void testForgottenPwd()
    • testForgottenPwdNoExpiry

      public void testForgottenPwdNoExpiry()
    • internalForgottenPwd

      protected void internalForgottenPwd(org.mockito.ArgumentMatcher<SecureToken> matcher)
    • testForgottenPwdInv

      public void testForgottenPwdInv()
    • testChangePasswordPasswordsDontMatch

      public void testChangePasswordPasswordsDontMatch() throws PasswordMismatchException
      Throws:
      PasswordMismatchException
    • testChangePasswordAnonymousUser

      public void testChangePasswordAnonymousUser() throws PasswordMismatchException
      Throws:
      PasswordMismatchException
    • testChangePassword

      public void testChangePassword() throws PasswordMismatchException
      Throws:
      PasswordMismatchException
    • testFillMissingCustomerInfo

      public void testFillMissingCustomerInfo() throws DuplicateUidException
      Throws:
      DuplicateUidException
    • testGetReturnRequestsForCustomer

      public void testGetReturnRequestsForCustomer()
    • testGetReturnRequestsForCustomerNullCustomer

      public void testGetReturnRequestsForCustomerNullCustomer()
    • testGetReturnRequestsForCustomerNullStore

      public void testGetReturnRequestsForCustomerNullStore()
    • testGetReturnRequestsForCustomerNullPageableData

      public void testGetReturnRequestsForCustomerNullPageableData()
    • shouldSetDeactivationDateOnCloseAccount

      public void shouldSetDeactivationDateOnCloseAccount()
    • shouldPopulateConsentsAttribute

      public void shouldPopulateConsentsAttribute()
    • testGetDelayTimeShouldInScope

      public void testGetDelayTimeShouldInScope()
    • testChangeUidToNoneExistAccountShouldDelay

      public void testChangeUidToNoneExistAccountShouldDelay() throws PasswordMismatchException, DuplicateUidException
      Throws:
      PasswordMismatchException
      DuplicateUidException
    • testChangeUidToExistAccountShouldDelay

      public void testChangeUidToExistAccountShouldDelay()