diff --git a/mosipTestDataProvider/src/io/mosip/testrig/dslrig/dataprovider/mds/MDSClient.java b/mosipTestDataProvider/src/io/mosip/testrig/dslrig/dataprovider/mds/MDSClient.java index 6c44cf0e..bca1b476 100644 --- a/mosipTestDataProvider/src/io/mosip/testrig/dslrig/dataprovider/mds/MDSClient.java +++ b/mosipTestDataProvider/src/io/mosip/testrig/dslrig/dataprovider/mds/MDSClient.java @@ -122,7 +122,9 @@ public void createProfile(String profilePath,String profile, ResidentModel resid ///////// //reach cached finger prints from folder String dirPath = VariableManager.getVariableValue(contextKey,"mountPath").toString()+VariableManager.getVariableValue(contextKey,"mosip.test.persona.fingerprintdatapath").toString(); - logger.info("createProfile dirPath " + dirPath); + logger.info("createProfile dirPath {}", dirPath); + + Hashtable> tblFiles = new Hashtable>(); File dir = new File(dirPath); @@ -143,7 +145,7 @@ public void createProfile(String profilePath,String profile, ResidentModel resid // otherwise pick the impression of same of scenario number int impressionToPick = (currentScenarioNumber < numberOfSubfolders) ? currentScenarioNumber : randomNumber ; - logger.info("createProfile currentScenarioNumber=" + currentScenarioNumber +" numberOfSubfolders=" + numberOfSubfolders + " impressionToPick=" + impressionToPick ); + logger.info("createProfile currentScenarioNumber={}" , currentScenarioNumber ," numberOfSubfolders={}" , numberOfSubfolders , " impressionToPick={}" , impressionToPick ); List lst=new LinkedList(); for(int i=min; i <= max; i++) { @@ -153,7 +155,7 @@ public void createProfile(String profilePath,String profile, ResidentModel resid } List firstSet = tblFiles.get(impressionToPick); - logger.info("createProfile Impression used "+ impressionToPick); + logger.info("createProfile Impression used {}", impressionToPick); /////////////// @@ -355,7 +357,7 @@ public MDSRCaptureModel captureFromRegDevice(MDSDevice device, HttpRCapture capture = new HttpRCapture(url); capture.setMethod("RCAPTURE"); String response = RestClient.rawHttp(capture, jsonReq.toString(),contextKey); - //logger.info("MDS RESPONSE :"+ response); + JSONObject respObject = new JSONObject(response); JSONArray bioArray = respObject.getJSONArray("biometrics"); List lstBiometrics = rCaptureModel.getLstBiometrics().get(type); @@ -476,13 +478,13 @@ public static void main(String[] args) { // MDSRCaptureModel r = client.captureFromRegDevice(dv, null, "Finger",null,60,"1",0); //MDSRCaptureModel r = client.captureFromRegDevice(d.get(0),null, "Iris",null,60,2); - // logger.info( r.toJSONString()); + }); //r = client.captureFromRegDevice(d.get(0),r, "Face",null,60,1); - //logger.info( r.toJSONString()); + } @Override