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

Update ProfileAPISteps.java

parent 404dfb12
......@@ -50,10 +50,9 @@ public class ProfileAPISteps {
@Given("I have all the data required for a profile creation")
public void iHaveAllTheDataRequiredForAProfileCreation(Map<String, String> userinfo) {
HashMap<String, String> userdata = new HashMap<String, String>();
userdata.putAll(userinfo);
String randomizeEmail = new StringBuilder().append(Instant.now().toEpochMilli())
.append(userinfo.get("emailAddress")).toString();
HashMap<String, String> userdata = new HashMap<>(userinfo);
String randomizeEmail = Instant.now().toEpochMilli()
+ userinfo.get("emailAddress");
userdata.replace("emailAddress", randomizeEmail);
Gson gson = new Gson();
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