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
@IntegrationTest public class AddressServiceTest extends ServicelayerTransactionalBaseTest
Integration tests forAddressService.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description AddressServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestAddressDuplicateAttributeIsSetOnSave()voidtestAddressTypeQualifierDynamicAttribute()voidtestCloneAddress()voidtestCloneAddressWithOriginal()voidtestCloneAddressWithSelfReference()Tests the cloning of addresses with a self-reference in the 'original' attribute.voidtestCreateAddressForUser()voidtestGetAddressesForOwner()voidtestRemoveAddressFromUser()voidtestRemoveUserWithAddress()-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
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()
-
-