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
@IntegrationTest public class UpdateRelationsTest extends ServicelayerTransactionalBaseTest
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 Constructor Description UpdateRelationsTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setModelService(ModelService modelService)
void
testAddGroupToExistingUserWithoutGroup()
Test to add first group to existing uservoid
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 .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.void
testAddNextUserToExistingGroupWithSetter()
Tests 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, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
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
public void setModelService(ModelService modelService)
-
-