Skip to content
Snippets Groups Projects
Commit 8d37c213 authored by Felix Reichenbach's avatar Felix Reichenbach
Browse files

OZG-7515 code review comment

parent cba60cb0
No related branches found
No related tags found
1 merge request!11Ozg 7515 migrate patch item command
...@@ -87,13 +87,13 @@ class M014_AddItemNameBescheidToPatchAttachedItemCommandITCase { ...@@ -87,13 +87,13 @@ class M014_AddItemNameBescheidToPatchAttachedItemCommandITCase {
} }
private Document savePatchAttachedItemSubCommand(ObjectId id) { private Document savePatchAttachedItemSubCommand(ObjectId id) {
Map<String, Object> itemBody = Map.of(PARENT_ID_FIELD, id.toString()); var itemBody = Map.<String, Object>of(PARENT_ID_FIELD, id.toString());
var command = CommandDocumentTestFactory.createWithOrderAndBody(PATCH_ATTACHED_ITEM_ORDER, itemBody); var command = CommandDocumentTestFactory.createWithOrderAndBody(PATCH_ATTACHED_ITEM_ORDER, itemBody);
return migrationDbTestUtils.saveCommand(command); return migrationDbTestUtils.saveCommand(command);
} }
private Document saveOtherSubCommand(ObjectId id) { private Document saveOtherSubCommand(ObjectId id) {
Map<String, Object> itemBody = Map.of(PARENT_ID_FIELD, id.toString()); var itemBody = Map.<String, Object>of(PARENT_ID_FIELD, id.toString());
var command = CommandDocumentTestFactory.createWithBody(itemBody); var command = CommandDocumentTestFactory.createWithBody(itemBody);
return migrationDbTestUtils.saveCommand(command); return migrationDbTestUtils.saveCommand(command);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment