@IntegrationTest public class InterceptorContextModelRegistrationTest extends ServicelayerBaseTest
ModelService :
de.hybris.platform.servicelayer.interceptor.InterceptorTestModelService.InterceptorRegistry, which is registered only for the purpose of
this test. It maps only one test PrepareInterceptors for the types under test.defaultLanguage, jaloSession| Constructor and Description |
|---|
InterceptorContextModelRegistrationTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
shouldCreateAndDeleteTheSameItemRegisteredForBothCreationAndDeletion() |
void |
shouldCreateNewModelRegisteredForSaveInRemoveInterceptor() |
void |
shouldRemoveExistingModelRegisteredForRemovalInPrepareInterceptor() |
void |
shouldSkipRegisteringMappingWithNoInterceptorWithoutException() |
void |
shouldUpdateExistingModelRegisteredForSaveInRemoveInterceptor() |
void |
tearDown() |
void |
testPersistModelsRegisteredInPrepareInterceptor()
In the test scenario an order is created.
Test interceptors mapping creates a new paymentAddress per each new model creation. Moreover, each new address triggers new Country creation via prepare interceptor. The test checks if every new model registered in the interceptor context is really persisted. |
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic InterceptorContextModelRegistrationTest()
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void tearDown()
throws java.lang.Exception
java.lang.Exceptionpublic void testPersistModelsRegisteredInPrepareInterceptor()
public void shouldCreateNewModelRegisteredForSaveInRemoveInterceptor()
public void shouldUpdateExistingModelRegisteredForSaveInRemoveInterceptor()
public void shouldRemoveExistingModelRegisteredForRemovalInPrepareInterceptor()
public void shouldCreateAndDeleteTheSameItemRegisteredForBothCreationAndDeletion()
public void shouldSkipRegisteringMappingWithNoInterceptorWithoutException()
Copyright © 2018 SAP SE. All Rights Reserved.