Class AuditEnablementServiceTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.persistence.audit.internal.AuditEnablementServiceTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class AuditEnablementServiceTest extends ServicelayerBaseTest
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description AuditEnablementServiceTest()
-
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
-
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
tearDown
public void tearDown() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldHaveAuditEnabledForTypeWhichIsNotConfiguredDirectlyButFlagForAllTypesIsEnabled
public void shouldHaveAuditEnabledForTypeWhichIsNotConfiguredDirectlyButFlagForAllTypesIsEnabled() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldHaveAuditDisabledWhenGlobalFlagIsSetToFalse
public void shouldHaveAuditDisabledWhenGlobalFlagIsSetToFalse() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldHaveAuditEnabledWhenGlobalFlagIsSetToTrue
public void shouldHaveAuditEnabledWhenGlobalFlagIsSetToTrue() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldHaveAuditDisabledForAnyTypeIfAuditIsDisabledGlobally
public void shouldHaveAuditDisabledForAnyTypeIfAuditIsDisabledGlobally() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldHaveAuditDisabledForTypeWhichIsNotConfigured
public void shouldHaveAuditDisabledForTypeWhichIsNotConfigured() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldHaveAuditDisabledForBlacklistedTypeEvenItIsConfiguredByUser
public void shouldHaveAuditDisabledForBlacklistedTypeEvenItIsConfiguredByUser() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldHaveAuditDisabledForBlacklistedTypeEvenIfAuditIsEnabledForAllTypes
public void shouldHaveAuditDisabledForBlacklistedTypeEvenIfAuditIsEnabledForAllTypes() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldHaveAuditDisabledForBlacklistedTypeEvenIfAuditIsEnabledForSuperTypeOfBlacklistedOne
public void shouldHaveAuditDisabledForBlacklistedTypeEvenIfAuditIsEnabledForSuperTypeOfBlacklistedOne() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldHaveAuditDisabledForTypeIfAuditrSuperTypeIsBlacklisted
public void shouldHaveAuditDisabledForTypeIfAuditrSuperTypeIsBlacklisted() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldHaveAuditDisabledForSubTypeIfNotSetInConfigAndSuperTypeIsDisabledInConfig
public void shouldHaveAuditDisabledForSubTypeIfNotSetInConfigAndSuperTypeIsDisabledInConfig() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldHaveAuditEnabledForUserTypeWhenItIsSetInConfigurationAndGlobalFlagIsEnabled
public void shouldHaveAuditEnabledForUserTypeWhenItIsSetInConfigurationAndGlobalFlagIsEnabled() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldHaveAuditEnabledForSubTypeWhenSupertpeIsSetInConfigurationAndGlobalFlagIsEnabled
public void shouldHaveAuditEnabledForSubTypeWhenSupertpeIsSetInConfigurationAndGlobalFlagIsEnabled() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldHaveAuditEnabledForProcessTaskTypeAfterRemoveProcessTaskFromBlacklist
public void shouldHaveAuditEnabledForProcessTaskTypeAfterRemoveProcessTaskFromBlacklist() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldThrowExceptionIfAuditPropertyDefinedTwice
public void shouldThrowExceptionIfAuditPropertyDefinedTwice()
-
shouldThrowExceptionForNonLowercaseProperty
public void shouldThrowExceptionForNonLowercaseProperty()
-
-