Class 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 Detail

      • DefaultModelServiceRemoveIntegrationTest

        public DefaultModelServiceRemoveIntegrationTest()
    • 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()