Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Access Token Provider
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gazelle
Applications
Test execution
Simulator
Access Token Provider
Merge requests
!4
Feature/iuainfra 53
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature/iuainfra 53
feature/IUAINFRA-53
into
develop
Overview
0
Commits
4
Pipelines
2
Changes
5
Merged
Wylem Bars
requested to merge
feature/IUAINFRA-53
into
develop
4 years ago
Overview
0
Commits
4
Pipelines
2
Changes
5
Expand
0
0
Merge request reports
Viewing commit
17574cc3
Prev
Next
Show latest version
5 files
+
14
−
18
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
17574cc3
IUAINFRA-53 | Fix sonar code smells
· 17574cc3
Wylem Bars
authored
4 years ago
access-token-provider-api/src/main/java/net/ihe/gazelle/app/accesstokenproviderapi/business/testuser/TestUser.java
+
5
−
9
Options
package
net.ihe.gazelle.app.accesstokenproviderapi.business.testuser
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
/**
* Test user used for authentication and token content
@@ -14,8 +10,8 @@ public class TestUser {
private
String
userId
;
private
List
<
String
>
givenNames
=
new
ArrayList
<>();
private
String
lastName
;
private
Date
birthDate
;
//fixme Date ?
private
String
gender
;
//fixme String ?
private
Date
birthDate
;
private
String
gender
;
private
Map
<
String
,
String
>
extensions
=
new
HashMap
<>();
/**
@@ -56,7 +52,7 @@ public class TestUser {
* @return birthDate
*/
public
Date
getBirthDate
()
{
return
birthDate
;
return
(
Date
)
birthDate
.
clone
()
;
}
/**
@@ -65,7 +61,7 @@ public class TestUser {
* @param birthDate the birthDate
*/
public
void
setBirthDate
(
Date
birthDate
)
{
this
.
birthDate
=
birthDate
;
this
.
birthDate
=
(
Date
)
birthDate
.
clone
()
;
}
/**
Loading