Class DefaultB2BCustomerAddressInterceptorTest


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

      • DefaultB2BCustomerAddressInterceptorTest

        public DefaultB2BCustomerAddressInterceptorTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testExportDataIfPhoneIsModified

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

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

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

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

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