Class DefaultModelServiceRemoveIntegrationTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.internal.model.impl.DefaultModelServiceRemoveIntegrationTest
- All Implemented Interfaces:
JaloSessionHolder
Tests the remove() and removeAll() methods from
DefaultModelService. The test scenarios cover the
following points:
- preparing different kind of items (simple, with references, relations, etc...) and persisting them into DB "directly" (via WritePersistenceGateway)
- firing the remove() or removeAll() method from DefautlModelService
- checking if the cache has been invalidated correctly
- checking if removed models have been detached from context
- checking if the items have been removed properly (using modelService.get())
- cleaning (using ModelPersistencegateway)
-
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
-
DefaultModelServiceRemoveIntegrationTest
public DefaultModelServiceRemoveIntegrationTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
clear
- Throws:
Exception
-
testDeleteSingleModel
public void testDeleteSingleModel() -
testDeleteSimpleIndependentModels
public void testDeleteSimpleIndependentModels() -
testDeleteModelWithRelationsImplicitly
public void testDeleteModelWithRelationsImplicitly() -
testDeleteModelWithRelationsExplicitlyOneSideFirst
public void testDeleteModelWithRelationsExplicitlyOneSideFirst() -
testDeleteModelWithRelationsExplicitlyManySideFirst
public void testDeleteModelWithRelationsExplicitlyManySideFirst() -
testDeleteModelWithReferencesImplicitly
public void testDeleteModelWithReferencesImplicitly() -
testDeleteModelWithReferencesExplicitly
public void testDeleteModelWithReferencesExplicitly() -
testDeleteModelWithReferencesExplicitlyTargetSideFirst
public void testDeleteModelWithReferencesExplicitlyTargetSideFirst() -
testDeleteModelWithManyToManyRelationsImplicitly
public void testDeleteModelWithManyToManyRelationsImplicitly() -
testDeleteModelWithManyToManyRelationsAndTarget
public void testDeleteModelWithManyToManyRelationsAndTarget()
-