-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MOSIO-34112] Adding test cases #1899
[MOSIO-34112] Adding test cases #1899
Conversation
Signed-off-by: khuddus shariff <[email protected]>
Signed-off-by: khuddus shariff <[email protected]>
assertFalse(messageDto.getIsValid()); | ||
assertTrue(messageDto.getInternalError()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use the ArgumentCaptor as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
assertFalse(messageDto.getIsValid()); | ||
assertTrue(messageDto.getInternalError()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use the ArgumentCaptor as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
matchedRidList.add("27847657360002520190320095011"); | ||
matchedRidList.add("27847657360002520190320095011"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both RIDs should be different.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
assertFalse(messageDto.getIsValid()); | ||
assertTrue(messageDto.getInternalError()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use the ArgumentCaptor as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
assertFalse(messageDto.getIsValid()); | ||
assertTrue(messageDto.getInternalError()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use the ArgumentCaptor as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
MessageDTO messageDto = bioDedupeProcessor.process(dto, stageName); | ||
assertFalse(messageDto.getIsValid()); | ||
assertTrue(messageDto.getInternalError()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use the ArgumentCaptor as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove these extra changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -450,11 +456,11 @@ public void testBioDeDupUpdatePacketHandlerProcessingSuccess() throws ApisResour | |||
* @throws RegistrationProcessorCheckedException | |||
*/ | |||
@Test | |||
@Ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we remove this test case or just keep @ignore annotation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
// One match of RID/AID found at bio dedupe, | ||
// but UIN of the duplicate match is different from update packet UIN when AutoReject is True | ||
@Test | ||
public void oneMatchFoundWithDiffrentUinWithMatchAutoRejecAsTrue() throws ApisResourceAccessException, IOException, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct the typo mistake Diffrent -> Different. Check other places as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
public void oneMatchFoundWithDiffrentUinWithMatchAutoRejecAsTrue() throws ApisResourceAccessException, IOException, | ||
PacketDecryptionFailureException, io.mosip.kernel.core.exception.IOException, JsonProcessingException, PacketManagerException { | ||
registrationStatusDto.setRegistrationId("27847657360002520190320095011"); | ||
registrationStatusDto.setRegistrationType("UPDATE"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the below for currently processing RID.
registrationStatusDto.setStatusCode("PROCESSING");
Check other occurrences as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Signed-off-by: khuddus shariff <[email protected]>
Signed-off-by: khuddus shariff <[email protected]>
Signed-off-by: khuddus shariff <[email protected]>
Signed-off-by: khuddus shariff <[email protected]>
Code reviewed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approving based on Ashok's approval
* [MOSIO-34112] Adding test cases Signed-off-by: khuddus shariff <[email protected]> --------- Signed-off-by: khuddus shariff <[email protected]>
…#1901) * [MOSIO-34112] Adding test cases (#1899) * [MOSIO-34112] Adding test cases Signed-off-by: khuddus shariff <[email protected]> --------- Signed-off-by: khuddus shariff <[email protected]> * pushtriger changes Signed-off-by: khuddus shariff <[email protected]> * added logger Signed-off-by: khuddus shariff <[email protected]> * test case modification Signed-off-by: khuddus shariff <[email protected]> * test case modification commented changes Signed-off-by: khuddus shariff <[email protected]> * test case modification commented changes Signed-off-by: khuddus shariff <[email protected]> --------- Signed-off-by: Sowmya Ujjappa Banakar <[email protected]> Signed-off-by: khuddus shariff <[email protected]> Co-authored-by: Sowmya Ujjappa Banakar <[email protected]> Co-authored-by: Sowmya Ujjappa Banakar <[email protected]>
No description provided.