Class UpdateRelationsTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTransactionalBaseTest
de.hybris.platform.servicelayer.model.UpdateRelationsTest
- All Implemented Interfaces:
JaloSessionHolder
Tests to add new relation (next element) for existing model using setters.
-
Field Summary
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetModelService(ModelService modelService) voidTest to add first group to existing uservoidTest to add next group to existing user which is updated using setter setGroups and was created before - with finding user once again after each update .voidTest to add next group to existing user which is updated using setter setGroups and was created before - without finding user once again.voidTests to add next user (member) to user group which is updated using setter setMembers.Methods 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
-
UpdateRelationsTest
public UpdateRelationsTest()
-
-
Method Details
-
testAddNextUserToExistingGroupWithSetter
public void testAddNextUserToExistingGroupWithSetter()Tests to add next user (member) to user group which is updated using setter setMembers. -
testAddNextGroupToExistingUserWithSetter
public void testAddNextGroupToExistingUserWithSetter()Test to add next group to existing user which is updated using setter setGroups and was created before - without finding user once again. -
testAddGroupToExistingUserWithoutGroup
public void testAddGroupToExistingUserWithoutGroup()Test to add first group to existing userMy result passed
-
testAddNextGroupToExistingUserAlwaysSearchBeforeAddGroup
public void testAddNextGroupToExistingUserAlwaysSearchBeforeAddGroup()Test to add next group to existing user which is updated using setter setGroups and was created before - with finding user once again after each update . -
setModelService
-