Skip to content

Commit

Permalink
MOSIP-29868 Test case added
Browse files Browse the repository at this point in the history
Signed-off-by: Sowmya Ujjappa Banakar <[email protected]>
  • Loading branch information
Sowmya Ujjappa Banakar committed Feb 1, 2024
1 parent 35d1d3a commit 3b20ea7
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,13 @@ public void testWithoutFilterByRefIds() {
Mockito.when(packetInfoDao.getAllDemographicInfoDtos(any(), any(), any(), any())).thenReturn(Dtos);
Mockito.when(packetInfoManager.getBioRefIdsByRegIds(anyList())).thenReturn(regBioRefDtos);

List<DemographicInfoDto> duplicates = demoDedupe.performDedupe(regId, true);
List<DemographicInfoDto> duplicatesInfant = demoDedupe.performDedupe(regId, true);
// expected to return only two id
assertEquals("Test for Dedupe Duplicate found", 2, duplicatesInfant.size());

List<DemographicInfoDto> duplicatesAdult = demoDedupe.performDedupe(regId, false);
// expected to return only one id
assertEquals("Test for Dedupe Duplicate found", 2, duplicates.size());
assertEquals("Test for Dedupe Duplicate found", 1, duplicatesAdult.size());
}

}

0 comments on commit 3b20ea7

Please sign in to comment.