Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
administration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
administration
Commits
7ee8be0b
Commit
7ee8be0b
authored
1 year ago
by
OZGCloud
Browse files
Options
Downloads
Patches
Plain Diff
OZG-4717 add TestFactory for Root
parent
1e2ca6cf
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/de/ozgcloud/admin/RootTestFactory.java
+25
-0
25 additions, 0 deletions
src/test/java/de/ozgcloud/admin/RootTestFactory.java
with
25 additions
and
0 deletions
src/test/java/de/ozgcloud/admin/RootTestFactory.java
0 → 100644
+
25
−
0
View file @
7ee8be0b
package
de.ozgcloud.admin
;
import
java.time.Instant
;
import
java.time.LocalDateTime
;
import
java.time.ZoneOffset
;
public
class
RootTestFactory
{
public
static
final
Instant
BUILD_TIME
=
LocalDateTime
.
parse
(
"2021-04-01T10:30"
).
toInstant
(
ZoneOffset
.
UTC
);
public
static
final
String
JAVA_VERSION
=
"1"
;
public
static
final
String
BUILD_VERSION
=
"2"
;
public
static
final
String
BUILD_NUMBER
=
"3"
;
public
static
Root
create
()
{
return
createBuilder
().
build
();
}
public
static
Root
.
RootBuilder
createBuilder
()
{
return
Root
.
builder
()
.
buildTime
(
BUILD_TIME
)
.
buildVersion
(
BUILD_NUMBER
)
.
buildNumber
(
BUILD_NUMBER
)
.
javaVersion
(
JAVA_VERSION
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment