Class DefaultB2BCustomerAddressInterceptorTest

java.lang.Object
com.sap.hybris.sapcustomerb2b.outbound.DefaultB2BCustomerAddressInterceptorTest

@UnitTest public class DefaultB2BCustomerAddressInterceptorTest extends Object
JUnit Test for class DefaultCustomerInterceptor check if the CustomerExportService will only be called in a specific situation.
  • Constructor Details

    • DefaultB2BCustomerAddressInterceptorTest

      public DefaultB2BCustomerAddressInterceptorTest()
  • Method Details

    • testExportDataIfPhoneIsModified

      public void testExportDataIfPhoneIsModified() throws de.hybris.platform.servicelayer.interceptor.InterceptorException
      Check if the interceptor call the customerExportService
      • phone number is modified
      Throws:
      de.hybris.platform.servicelayer.interceptor.InterceptorException
    • testNoExportDataIfPhoneIsNotodified

      public void testNoExportDataIfPhoneIsNotodified() throws de.hybris.platform.servicelayer.interceptor.InterceptorException
      Check if the interceptor does not call the customerExportService
      • phone number is not modified
      Throws:
      de.hybris.platform.servicelayer.interceptor.InterceptorException
    • testNoExportDataIfPublicKeyIsInvalid

      public void testNoExportDataIfPublicKeyIsInvalid() throws de.hybris.platform.servicelayer.interceptor.InterceptorException
      Check if the interceptor does not call the customerExportService
      • generated public key is set not equal addressModel.getPublicKey()
      Throws:
      de.hybris.platform.servicelayer.interceptor.InterceptorException
    • testNoExportDataIfCustomerIDIsSpace

      public void testNoExportDataIfCustomerIDIsSpace() throws de.hybris.platform.servicelayer.interceptor.InterceptorException
      Check if the interceptor does not call the customerExportService
      • customerId is set to space
      Throws:
      de.hybris.platform.servicelayer.interceptor.InterceptorException
    • testNoExportDataIfCustomerIDIsNull

      public void testNoExportDataIfCustomerIDIsNull() throws de.hybris.platform.servicelayer.interceptor.InterceptorException
      Check if the interceptor does not call the customerExportService
      • customerId is set to null
      Throws:
      de.hybris.platform.servicelayer.interceptor.InterceptorException