diff --git a/modules/apps/object/object-storage-salesforce-test/src/testIntegration/java/com/liferay/object/storage/salesforce/internal/rest/manager/v1_0/test/SalesforceObjectEntryManagerImplTest.java b/modules/apps/object/object-storage-salesforce-test/src/testIntegration/java/com/liferay/object/storage/salesforce/internal/rest/manager/v1_0/test/SalesforceObjectEntryManagerImplTest.java index bb79a510f239f3..981ddd6e1a35c4 100644 --- a/modules/apps/object/object-storage-salesforce-test/src/testIntegration/java/com/liferay/object/storage/salesforce/internal/rest/manager/v1_0/test/SalesforceObjectEntryManagerImplTest.java +++ b/modules/apps/object/object-storage-salesforce-test/src/testIntegration/java/com/liferay/object/storage/salesforce/internal/rest/manager/v1_0/test/SalesforceObjectEntryManagerImplTest.java @@ -268,14 +268,19 @@ public void testPartialUpdateObjectEntry() throws Exception { }, null); - ObjectEntry newObjectEntry = _objectEntryManager.getObjectEntry( + objectEntry = _objectEntryManager.getObjectEntry( TestPropsValues.getCompanyId(), dtoConverterContext, objectEntry.getExternalReferenceCode(), _objectDefinition, ObjectDefinitionConstants.SCOPE_COMPANY); - Map properties = newObjectEntry.getProperties(); + Map properties = objectEntry.getProperties(); Assert.assertEquals("Able", properties.get("title")); + + _objectEntryManager.deleteObjectEntry( + TestPropsValues.getCompanyId(), _getDTOConverterContext(), + objectEntry.getExternalReferenceCode(), _objectDefinition, + ObjectDefinitionConstants.SCOPE_COMPANY); } private DTOConverterContext _getDTOConverterContext() throws Exception {