Class DefaultB2BCustomerAddressInterceptorTest
java.lang.Object
com.sap.hybris.sapcustomerb2b.outbound.DefaultB2BCustomerAddressInterceptorTest
JUnit Test for class DefaultCustomerInterceptor check if the CustomerExportService will only be called in a specific
situation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCheck if the interceptor call the customerExportService phone number is modifiedvoidCheck if the interceptor does not call the customerExportService customerId is set to nullvoidCheck if the interceptor does not call the customerExportService customerId is set to spacevoidCheck if the interceptor does not call the customerExportService phone number is not modifiedvoidCheck if the interceptor does not call the customerExportService generated public key is set not equal addressModel.getPublicKey()
-
Constructor Details
-
DefaultB2BCustomerAddressInterceptorTest
public DefaultB2BCustomerAddressInterceptorTest()
-
-
Method Details
-
testExportDataIfPhoneIsModified
public void testExportDataIfPhoneIsModified() throws de.hybris.platform.servicelayer.interceptor.InterceptorExceptionCheck 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.InterceptorExceptionCheck 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.InterceptorExceptionCheck 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.InterceptorExceptionCheck 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.InterceptorExceptionCheck if the interceptor does not call the customerExportService- customerId is set to null
- Throws:
de.hybris.platform.servicelayer.interceptor.InterceptorException
-