Class DefaultB2BCustomerAddressInterceptorTest
- java.lang.Object
-
- com.sap.hybris.sapcustomerb2b.outbound.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 Summary
Constructors Constructor Description DefaultB2BCustomerAddressInterceptorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestExportDataIfPhoneIsModified()Check if the interceptor call the customerExportService phone number is modifiedvoidtestNoExportDataIfCustomerIDIsNull()Check if the interceptor does not call the customerExportService customerId is set to nullvoidtestNoExportDataIfCustomerIDIsSpace()Check if the interceptor does not call the customerExportService customerId is set to spacevoidtestNoExportDataIfPhoneIsNotodified()Check if the interceptor does not call the customerExportService phone number is not modifiedvoidtestNoExportDataIfPublicKeyIsInvalid()Check if the interceptor does not call the customerExportService generated public key is set not equal addressModel.getPublicKey()
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
testExportDataIfPhoneIsModified
public void testExportDataIfPhoneIsModified() throws InterceptorExceptionCheck if the interceptor call the customerExportService- phone number is modified
- Throws:
InterceptorException
-
testNoExportDataIfPhoneIsNotodified
public void testNoExportDataIfPhoneIsNotodified() throws InterceptorExceptionCheck if the interceptor does not call the customerExportService- phone number is not modified
- Throws:
InterceptorException
-
testNoExportDataIfPublicKeyIsInvalid
public void testNoExportDataIfPublicKeyIsInvalid() throws InterceptorExceptionCheck if the interceptor does not call the customerExportService- generated public key is set not equal addressModel.getPublicKey()
- Throws:
InterceptorException
-
testNoExportDataIfCustomerIDIsSpace
public void testNoExportDataIfCustomerIDIsSpace() throws InterceptorExceptionCheck if the interceptor does not call the customerExportService- customerId is set to space
- Throws:
InterceptorException
-
testNoExportDataIfCustomerIDIsNull
public void testNoExportDataIfCustomerIDIsNull() throws InterceptorExceptionCheck if the interceptor does not call the customerExportService- customerId is set to null
- Throws:
InterceptorException
-
-