Class DefaultPersistenceServiceUnitTest
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.persistence.impl.DefaultPersistenceServiceUnitTest
-
@UnitTest public class DefaultPersistenceServiceUnitTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DefaultPersistenceServiceUnitTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUpHappyPathDefaults()voidtestCreateEntityData_HandlesEdmException()voidtestCreateEntityData_HandlesItemLockedForProcessingException()voidtestCreateEntityData_HandlesModelSavingException()voidtestCreateEntityData_HandlesSystemIsSuspendedException()voidtestCreateEntityDataDoesNotSaveIfPrePersistHookDisabledPersistence()voidtestCreateEntityDataInvokesPostPersistHookAfterSave()voidtestCreateEntityDataReturnsGetEntityDataWhenItemIsPersisted()voidtestDeleteItem()voidtestDeleteItem_notExistingItem()voidtestGetEntitiesThrowsRetrievalRuntimeException()voidtestGetEntitiesWhenItemsFound()voidtestGetEntitiesWhenItemsNotFound()voidtestGetEntityData()voidtestGetEntityData_notExistingItem()voidtestPersistHookNotFound()voidtestPostPersistHookException()voidtestPrePersistHookException()
-
-
-
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
-
-