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 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)
  • Constructor Details

    • DefaultModelServiceRemoveIntegrationTest

      public DefaultModelServiceRemoveIntegrationTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • clear

      public void clear() throws Exception
      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()