Skip to content

Commit

Permalink
Fixed test case error.
Browse files Browse the repository at this point in the history
  • Loading branch information
mahammedtaheer committed Sep 15, 2023
1 parent c60fa2b commit 59fd629
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public void before() {
public void createAnonymousProfileWith_YourOfBirthTest() throws IdAuthenticationBusinessException {
requestBody = new HashMap<>();
requestMetadata = new HashMap<>();
errorCodes = new ArrayList<>();
List<IdentityInfoDTO> dobList = new ArrayList<IdentityInfoDTO>();
IdentityInfoDTO dob = new IdentityInfoDTO();
dob.setLanguage("Eng");
Expand All @@ -114,6 +115,7 @@ public void createAnonymousProfileWith_YourOfBirthTest() throws IdAuthentication
public void createAnonymousProfileWith_PreferredLangTest() throws IdAuthenticationBusinessException {
requestBody = new HashMap<>();
requestMetadata = new HashMap<>();
errorCodes = new ArrayList<>();
List<IdentityInfoDTO> preferedLangList = new ArrayList<IdentityInfoDTO>();
IdentityInfoDTO lang = new IdentityInfoDTO();
lang.setLanguage("eng");
Expand All @@ -136,6 +138,7 @@ public void createAnonymousProfileWith_PreferredLangTest() throws IdAuthenticati
public void createAnonymousProfileWith_GenderTest() throws IdAuthenticationBusinessException {
requestBody = new HashMap<>();
requestMetadata = new HashMap<>();
errorCodes = new ArrayList<>();
List<IdentityInfoDTO> genderList = new ArrayList<IdentityInfoDTO>();
IdentityInfoDTO gender = new IdentityInfoDTO();
gender.setLanguage("eng");
Expand All @@ -158,6 +161,7 @@ public void createAnonymousProfileWith_GenderTest() throws IdAuthenticationBusin
public void createAnonymousProfileWith_LocationTest() throws IdAuthenticationBusinessException {
requestBody = new HashMap<>();
requestMetadata = new HashMap<>();
errorCodes = new ArrayList<>();
List<IdentityInfoDTO> preferedLangList = new ArrayList<IdentityInfoDTO>();
IdentityInfoDTO lang = new IdentityInfoDTO();
lang.setLanguage(null);
Expand Down Expand Up @@ -185,6 +189,7 @@ public void createAnonymousProfileWith_LocationTest() throws IdAuthenticationBus
public void createAnonymousProfileWith_BiometricInfoTest() throws IdAuthenticationBusinessException, IOException {
requestBody = new HashMap<>();
requestMetadata = new HashMap<>();
errorCodes = new ArrayList<>();
List<IdentityInfoDTO> preferedLangList = new ArrayList<IdentityInfoDTO>();
IdentityInfoDTO lang = new IdentityInfoDTO();
lang.setLanguage("eng");
Expand Down Expand Up @@ -225,6 +230,7 @@ public void createAnonymousProfileWith_BiometricInfoTest() throws IdAuthenticati
public void createAnonymousProfileWith_AuthFactorsTest() throws IdAuthenticationBusinessException {
requestBody = new HashMap<>();
requestMetadata = new HashMap<>();
errorCodes = new ArrayList<>();
AutnTxn authTxn = new AutnTxn();
authTxn.setAuthTypeCode("OTP-REQUEST,DEMO-AUTH,BIO-AUTH");
responseMetadata.put("AutnTxn",authTxn);
Expand All @@ -244,6 +250,7 @@ public void createAnonymousProfileWith_AuthFactorsTest() throws IdAuthentication
public void createAnonymousProfileWith_PartnerTest() throws IdAuthenticationBusinessException {
requestBody = new HashMap<>();
requestMetadata = new HashMap<>();
errorCodes = new ArrayList<>();
PartnerDTO partner = new PartnerDTO();
partner.setPartnerName("SyncByte");
partner.setPartnerId("abc");
Expand All @@ -258,6 +265,7 @@ public void createAnonymousProfileWith_PartnerTest() throws IdAuthenticationBusi
public void createAnonymousProfileExceptionTest() throws IdAuthenticationBusinessException {
requestBody = new HashMap<>();
requestMetadata = new HashMap<>();
errorCodes = new ArrayList<>();
Map<String, Object> authResponse = new HashMap<>();
authResponse.put("authStatus", "false");
authResponse.put("authToken", "");
Expand Down

0 comments on commit 59fd629

Please sign in to comment.