Commit 065c7863 authored by Rakesh Mareddy's avatar Rakesh Mareddy

Update ProfileAPISteps.java

parent 404dfb12
...@@ -50,10 +50,9 @@ public class ProfileAPISteps { ...@@ -50,10 +50,9 @@ public class ProfileAPISteps {
@Given("I have all the data required for a profile creation") @Given("I have all the data required for a profile creation")
public void iHaveAllTheDataRequiredForAProfileCreation(Map<String, String> userinfo) { public void iHaveAllTheDataRequiredForAProfileCreation(Map<String, String> userinfo) {
HashMap<String, String> userdata = new HashMap<String, String>(); HashMap<String, String> userdata = new HashMap<>(userinfo);
userdata.putAll(userinfo); String randomizeEmail = Instant.now().toEpochMilli()
String randomizeEmail = new StringBuilder().append(Instant.now().toEpochMilli()) + userinfo.get("emailAddress");
.append(userinfo.get("emailAddress")).toString();
userdata.replace("emailAddress", randomizeEmail); userdata.replace("emailAddress", randomizeEmail);
Gson gson = new Gson(); Gson gson = new Gson();
this.body = gson.toJson(userdata); this.body = gson.toJson(userdata);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment