Class InvalidateItemModelConverterTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTransactionalBaseTest
de.hybris.platform.servicelayer.model.InvalidateItemModelConverterTest
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest
public class InvalidateItemModelConverterTest
extends ServicelayerTransactionalBaseTest
Checks the invalidation of internal cache of
ItemModelConverter.-
Field Summary
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
InvalidateItemModelConverterTest
public InvalidateItemModelConverterTest()
-
-
Method Details
-
setUp
public void setUp() -
tearDown
public void tearDown() -
testAttributeModification
public void testAttributeModification()Modifies attribute Unit.code by setting it to non-writable. Internal converter attribute info has to show this change. -
testAttributeRemoval
public void testAttributeRemoval() throws JaloDuplicateQualifierException, ConsistencyCheckExceptionRemoves Unit.conversion. Internal converter attribute info has to show this change. -
testAttributeCreation
public void testAttributeCreation() throws JaloDuplicateQualifierException, ConsistencyCheckExceptionFirst removes Unit.conversion and then adds it again. Internal converter attribute info has to show this change. Removal first is needed because the model class needs to have the field, otherwise it will not be added to cache.
-