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
@IntegrationTest public class DefaultModelServiceRemoveIntegrationTest extends ServicelayerBaseTest
Tests the remove() and removeAll() methods fromDefaultModelService
. 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 Constructor Description DefaultModelServiceRemoveIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
setUp()
void
testDeleteModelWithManyToManyRelationsAndTarget()
void
testDeleteModelWithManyToManyRelationsImplicitly()
void
testDeleteModelWithReferencesExplicitly()
void
testDeleteModelWithReferencesExplicitlyTargetSideFirst()
void
testDeleteModelWithReferencesImplicitly()
void
testDeleteModelWithRelationsExplicitlyManySideFirst()
void
testDeleteModelWithRelationsExplicitlyOneSideFirst()
void
testDeleteModelWithRelationsImplicitly()
void
testDeleteSimpleIndependentModels()
void
testDeleteSingleModel()
-
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
-
clear
public void clear() throws java.lang.Exception
- Throws:
java.lang.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()
-
-