Class AddressServiceTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTransactionalBaseTest
de.hybris.platform.servicelayer.user.AddressServiceTest
- All Implemented Interfaces:
JaloSessionHolder
Integration tests for
AddressService.-
Field Summary
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidTests the cloning of addresses with a self-reference in the 'original' attribute.voidvoidvoidvoidMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
AddressServiceTest
public AddressServiceTest()
-
-
Method Details
-
testCreateAddressForUser
public void testCreateAddressForUser() -
testGetAddressesForOwner
public void testGetAddressesForOwner() -
testCloneAddress
public void testCloneAddress() -
testCloneAddressWithOriginal
public void testCloneAddressWithOriginal() -
testCloneAddressWithSelfReference
public void testCloneAddressWithSelfReference()Tests the cloning of addresses with a self-reference in the 'original' attribute.The
ModelService.clone(Object)is used for cloning.The expected behavior is that the cloning works and the 'original' attribute in the clone is
null, because an attribute, which is required for creation and contains a self-reference, is skipped during cloning. See also PLA-10356. -
testRemoveUserWithAddress
public void testRemoveUserWithAddress() -
testRemoveAddressFromUser
public void testRemoveAddressFromUser() -
testAddressDuplicateAttributeIsSetOnSave
public void testAddressDuplicateAttributeIsSetOnSave() -
testAddressTypeQualifierDynamicAttribute
public void testAddressTypeQualifierDynamicAttribute()
-