Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AI-github-demo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Iswarabhotla Sunder
AI-github-demo
Commits
065c7863
Commit
065c7863
authored
Nov 26, 2024
by
Rakesh Mareddy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ProfileAPISteps.java
parent
404dfb12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
ProfileAPISteps.java
ProfileAPISteps.java
+3
-4
No files found.
ProfileAPISteps.java
View file @
065c7863
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment