Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Online Banking Service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Filip Kollár
Online Banking Service
Commits
b2a5870a
There was an error fetching the commit references. Please try again later.
Commit
b2a5870a
authored
11 months ago
by
Filip Fabry
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Write tests for user-service
parent
ca3564e3
No related branches found
No related tags found
1 merge request
!11
Write tests for user-service
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
user-service/src/test/java/cz/muni/fi/obs/util/JsonConvertor.java
+1
-3
1 addition, 3 deletions
...vice/src/test/java/cz/muni/fi/obs/util/JsonConvertor.java
with
1 addition
and
3 deletions
user-service/src/test/java/cz/muni/fi/obs/util/JsonConvertor.java
+
1
−
3
View file @
b2a5870a
...
@@ -14,9 +14,7 @@ public class JsonConvertor {
...
@@ -14,9 +14,7 @@ public class JsonConvertor {
private
static
final
ObjectMapper
OBJECT_MAPPER
=
new
ObjectMapper
()
private
static
final
ObjectMapper
OBJECT_MAPPER
=
new
ObjectMapper
()
.
disable
(
DeserializationFeature
.
FAIL_ON_UNKNOWN_PROPERTIES
)
.
disable
(
DeserializationFeature
.
FAIL_ON_UNKNOWN_PROPERTIES
)
.
registerModule
(
new
JavaTimeModule
())
.
registerModule
(
new
JavaTimeModule
());
.
setPropertyNamingStrategy
(
new
PropertyNamingStrategies
.
SnakeCaseStrategy
())
.
setSerializationInclusion
(
JsonInclude
.
Include
.
NON_NULL
);
public
static
<
T
>
T
convertJsonToObject
(
String
serializedObject
,
Class
<
T
>
objectClass
)
throws
public
static
<
T
>
T
convertJsonToObject
(
String
serializedObject
,
Class
<
T
>
objectClass
)
throws
JsonProcessingException
{
JsonProcessingException
{
...
...
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