diff --git a/authentication/authentication-common/src/test/java/io/mosip/authentication/common/service/impl/AuthAnonymousProfileServiceImplTest.java b/authentication/authentication-common/src/test/java/io/mosip/authentication/common/service/impl/AuthAnonymousProfileServiceImplTest.java index 80f220863d7..1f2a6f9038b 100644 --- a/authentication/authentication-common/src/test/java/io/mosip/authentication/common/service/impl/AuthAnonymousProfileServiceImplTest.java +++ b/authentication/authentication-common/src/test/java/io/mosip/authentication/common/service/impl/AuthAnonymousProfileServiceImplTest.java @@ -91,6 +91,7 @@ public void before() { public void createAnonymousProfileWith_YourOfBirthTest() throws IdAuthenticationBusinessException { requestBody = new HashMap<>(); requestMetadata = new HashMap<>(); + errorCodes = new ArrayList<>(); List dobList = new ArrayList(); IdentityInfoDTO dob = new IdentityInfoDTO(); dob.setLanguage("Eng"); @@ -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 preferedLangList = new ArrayList(); IdentityInfoDTO lang = new IdentityInfoDTO(); lang.setLanguage("eng"); @@ -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 genderList = new ArrayList(); IdentityInfoDTO gender = new IdentityInfoDTO(); gender.setLanguage("eng"); @@ -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 preferedLangList = new ArrayList(); IdentityInfoDTO lang = new IdentityInfoDTO(); lang.setLanguage(null); @@ -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 preferedLangList = new ArrayList(); IdentityInfoDTO lang = new IdentityInfoDTO(); lang.setLanguage("eng"); @@ -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); @@ -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"); @@ -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 authResponse = new HashMap<>(); authResponse.put("authStatus", "false"); authResponse.put("authToken", "");