Class ManyToManyReferencesResolverTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.audit.provider.internal.resolver.impl.ManyToManyReferencesResolverTest
-
- All Implemented Interfaces:
AuditableTest
,JaloSessionHolder
- Direct Known Subclasses:
ManyToManyReferencesResolverJaloTest
,ManyToManyReferencesResolverSLDTest
public class ManyToManyReferencesResolverTest extends ServicelayerBaseTest implements AuditableTest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ManyToManyReferencesResolverTest.TuplesBuilder
-
Field Summary
Fields Modifier and Type Field Description protected AuditRecordsProvider
auditRecordsProvider
protected ModelService
modelService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description ManyToManyReferencesResolverTest()
-
Method Summary
-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.audit.AuditableTest
assumeAuditEnabled
-
-
-
-
Field Detail
-
modelService
protected ModelService modelService
-
auditRecordsProvider
protected AuditRecordsProvider auditRecordsProvider
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
switchPersistenceLegacyMode
protected void switchPersistenceLegacyMode(boolean value)
-
tearDown
public void tearDown() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldProvideAuditRecordsForUserBasedOnCurrentModel
public void shouldProvideAuditRecordsForUserBasedOnCurrentModel() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldProvideAuditRecordsForUserWithDeleteBasedOnCurrentModel
public void shouldProvideAuditRecordsForUserWithDeleteBasedOnCurrentModel() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldProvideAuditRecordsForGroupWithDeleteBasedOnCurrentModel
public void shouldProvideAuditRecordsForGroupWithDeleteBasedOnCurrentModel() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldProvideAuditRecordsForDeletedUser
public void shouldProvideAuditRecordsForDeletedUser() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldProvideAuditRecordsForUserWithDeleteBasedOnCurrentModelAndAudit
public void shouldProvideAuditRecordsForUserWithDeleteBasedOnCurrentModelAndAudit() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldProvideAuditRecordsForUserBasedOnCurrentModelAndAudit
public void shouldProvideAuditRecordsForUserBasedOnCurrentModelAndAudit() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldProvideAuditRecordsForGroupBasedOnCurrentModelAndAudit
public void shouldProvideAuditRecordsForGroupBasedOnCurrentModelAndAudit() throws java.lang.Exception
- Throws:
java.lang.Exception
-
enableAuditing
protected void enableAuditing(java.lang.String... types)
-
createUserGroup
protected UserGroupModel createUserGroup(java.lang.String userGroupUid, java.lang.String userGroupName)
-
createUser
protected UserModel createUser(java.lang.String userUid, java.lang.String userName)
-
createConfigForUserWithManyToManyAttribute
protected AuditReportConfig createConfigForUserWithManyToManyAttribute()
-
createConfigForGroupWithManyToManyAttribute
protected AuditReportConfig createConfigForGroupWithManyToManyAttribute()
-
-