Class DefaultPersistenceServiceUnitTest


  • @UnitTest
    public class DefaultPersistenceServiceUnitTest
    extends java.lang.Object
    • Constructor Detail

      • DefaultPersistenceServiceUnitTest

        public DefaultPersistenceServiceUnitTest()
    • Method Detail

      • setUpHappyPathDefaults

        public void setUpHappyPathDefaults()
                                    throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testCreateEntityDataInvokesPostPersistHookAfterSave

        public void testCreateEntityDataInvokesPostPersistHookAfterSave()
                                                                 throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testCreateEntityDataDoesNotSaveIfPrePersistHookDisabledPersistence

        public void testCreateEntityDataDoesNotSaveIfPrePersistHookDisabledPersistence()
                                                                                throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testCreateEntityDataReturnsGetEntityDataWhenItemIsPersisted

        public void testCreateEntityDataReturnsGetEntityDataWhenItemIsPersisted()
                                                                         throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testCreateEntityData_HandlesEdmException

        public void testCreateEntityData_HandlesEdmException()
                                                      throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testCreateEntityData_HandlesItemLockedForProcessingException

        public void testCreateEntityData_HandlesItemLockedForProcessingException()
                                                                          throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testCreateEntityData_HandlesModelSavingException

        public void testCreateEntityData_HandlesModelSavingException()
      • testCreateEntityData_HandlesSystemIsSuspendedException

        public void testCreateEntityData_HandlesSystemIsSuspendedException()
      • testPersistHookNotFound

        public void testPersistHookNotFound()
                                     throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testPrePersistHookException

        public void testPrePersistHookException()
                                         throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testPostPersistHookException

        public void testPostPersistHookException()
                                          throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testGetEntityData

        public void testGetEntityData()
                               throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testGetEntityData_notExistingItem

        public void testGetEntityData_notExistingItem()
                                               throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testDeleteItem

        public void testDeleteItem()
                            throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testDeleteItem_notExistingItem

        public void testDeleteItem_notExistingItem()
                                            throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testGetEntitiesWhenItemsFound

        public void testGetEntitiesWhenItemsFound()
                                           throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testGetEntitiesWhenItemsNotFound

        public void testGetEntitiesWhenItemsNotFound()
                                              throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testGetEntitiesThrowsRetrievalRuntimeException

        public void testGetEntitiesThrowsRetrievalRuntimeException()
                                                            throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException