Skip to content

Commit

Permalink
LPS-193133 Reuse variable and delete the entry at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-oliveira446 authored and brianchandotcom committed Aug 22, 2023
1 parent 2d849e2 commit 81db764
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Object> properties = newObjectEntry.getProperties();
Map<String, Object> 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 {
Expand Down

0 comments on commit 81db764

Please sign in to comment.