Skip to content
Snippets Groups Projects
Commit 7009acb4 authored by Alok Joshi's avatar Alok Joshi
Browse files

test case fix

parent 4d5837c9
No related branches found
No related tags found
1 merge request!74use createItem instead of upsertItem for create api
Pipeline #14426 failed
......@@ -86,7 +86,7 @@ public class LegalTagRepositoryImplTest {
long obtainedId = sut.create(legalTag);
ArgumentCaptor<LegalTagDoc> arg = ArgumentCaptor.forClass(LegalTagDoc.class);
verify(cosmosStore).upsertItem(eq(dataPartitionId), any(), any(), arg.capture());
verify(cosmosStore).createItem(eq(dataPartitionId), any(), any(), arg.capture());
assertEquals(arg.getValue().getId(), strId);
assertEquals(obtainedId, id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment