Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
dataplatform
atlas
Commits
d52369ef
Commit
d52369ef
authored
Jul 16, 2019
by
Madhan Neethiraj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3067: updated EntityJerseyResourceIT.testUTF8() to aid troubleshooting failures - #2
parent
36459c78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
EntityJerseyResourceIT.java
.../apache/atlas/web/integration/EntityJerseyResourceIT.java
+8
-7
No files found.
webapp/src/test/java/org/apache/atlas/web/integration/EntityJerseyResourceIT.java
View file @
d52369ef
...
...
@@ -833,13 +833,14 @@ public class EntityJerseyResourceIT extends BaseResourceIT {
Collections
.
singletonList
(
classTypeDefinition
));
createType
(
typesDef
);
Referenceable
instance
=
new
Referenceable
(
classType
);
instance
.
set
(
attrName
,
attrValue
);
Id
guid
=
createInstance
(
instance
);
ObjectNode
response
=
atlasClientV1
.
callAPIWithBodyAndParams
(
AtlasClient
.
API_V1
.
GET_ENTITY
,
null
,
guid
.
_getId
());
Referenceable
getReferenceable
=
AtlasType
.
fromV1Json
(
AtlasType
.
toJson
(
response
.
get
(
AtlasClient
.
DEFINITION
)),
Referenceable
.
class
);
Assert
.
assertEquals
(
getReferenceable
.
get
(
attrName
),
attrValue
);
Referenceable
instance
=
new
Referenceable
(
classType
,
Collections
.
singletonMap
(
attrName
,
attrValue
));
Id
guid
=
createInstance
(
instance
);
ObjectNode
response
=
atlasClientV1
.
callAPIWithBodyAndParams
(
AtlasClient
.
API_V1
.
GET_ENTITY
,
null
,
guid
.
_getId
());
Object
objResponse
=
response
.
get
(
AtlasClient
.
DEFINITION
);
String
jsonResponse
=
AtlasType
.
toJson
(
objResponse
);
Referenceable
createdEntity
=
AtlasType
.
fromV1Json
(
jsonResponse
,
Referenceable
.
class
);
Assert
.
assertEquals
(
createdEntity
.
get
(
attrName
),
attrValue
,
"entityId="
+
guid
+
"; objResponse="
+
objResponse
+
"; jsonResponse="
+
jsonResponse
+
"; createdEntity="
+
createdEntity
);
}
...
...
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