Class DefaultAuditConfigServiceTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.audit.AbstractAuditTest
-
- de.hybris.platform.audit.internal.config.DefaultAuditConfigServiceTest
-
- All Implemented Interfaces:
AuditableTest,JaloSessionHolder
@IntegrationTest public class DefaultAuditConfigServiceTest extends AbstractAuditTest
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.audit.AbstractAuditTest
address1, address2, address3, auditEnablementService, auditRecordsProvider, auditTestConfigManager, auditTestHelper, creator, modelService, testAuditReportConfig, title1, title2, user1, userService, writeAuditGateway
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description DefaultAuditConfigServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisableProductionMode()voidrevertProperty()voidshouldFailIfConfigNameDoesNotMatchAuditReportConfigModelCode()voidshouldFindExistingConfig()voidshouldGetAllConfigsForExtendedType()voidshouldGetAllConfigsForRootType()voidshouldMergeRelationAttributesForTwoConfigurations()voidshouldMergeTwoConfigurations_declaredModeAppend()voidshouldMergeTwoConfigurations_declaredModeRemove()voidshouldMergeTwoConfigurations_declaredModeReplace()voidshouldMergeTwoConfigurations_defaultModeAppend()voidshouldNotReturnInactiveConfiguration()voidshouldReturnEmptyCollectionForNonExistingRootType()voidshouldSaveReportWithWarningsInDevelopmentMode()voidshouldStoreConfig()voidshouldStoreConfigInProductionMode()voidshouldThrowExceptionWhenSavingReportWithWarningsInProductionMode()voidshouldUnmarshallConfig()-
Methods inherited from class de.hybris.platform.audit.AbstractAuditTest
cleanup, loadConfigFromFile, setUp, switchPersitenceLegacyMode
-
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
-
-
-
-
Method Detail
-
disableProductionMode
public void disableProductionMode()
-
revertProperty
public void revertProperty()
-
shouldStoreConfig
public void shouldStoreConfig() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldStoreConfigInProductionMode
public void shouldStoreConfigInProductionMode() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldFailIfConfigNameDoesNotMatchAuditReportConfigModelCode
public void shouldFailIfConfigNameDoesNotMatchAuditReportConfigModelCode() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldThrowExceptionWhenSavingReportWithWarningsInProductionMode
public void shouldThrowExceptionWhenSavingReportWithWarningsInProductionMode() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldSaveReportWithWarningsInDevelopmentMode
public void shouldSaveReportWithWarningsInDevelopmentMode() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldUnmarshallConfig
public void shouldUnmarshallConfig() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldFindExistingConfig
public void shouldFindExistingConfig() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldMergeTwoConfigurations_defaultModeAppend
public void shouldMergeTwoConfigurations_defaultModeAppend() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldMergeTwoConfigurations_declaredModeAppend
public void shouldMergeTwoConfigurations_declaredModeAppend() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldMergeTwoConfigurations_declaredModeReplace
public void shouldMergeTwoConfigurations_declaredModeReplace() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldMergeTwoConfigurations_declaredModeRemove
public void shouldMergeTwoConfigurations_declaredModeRemove() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldGetAllConfigsForRootType
public void shouldGetAllConfigsForRootType()
-
shouldGetAllConfigsForExtendedType
public void shouldGetAllConfigsForExtendedType()
-
shouldReturnEmptyCollectionForNonExistingRootType
public void shouldReturnEmptyCollectionForNonExistingRootType()
-
shouldNotReturnInactiveConfiguration
public void shouldNotReturnInactiveConfiguration()
-
shouldMergeRelationAttributesForTwoConfigurations
public void shouldMergeRelationAttributesForTwoConfigurations() throws java.lang.Exception- Throws:
java.lang.Exception
-
-