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
73748b46
Commit
73748b46
authored
Mar 24, 2015
by
David Kaspar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG-50: Update of DemoDataDriver and TestDataDriver
parent
4f928a8d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
DemoDataDriver.java
.../main/java/org/apache/hadoop/metadata/DemoDataDriver.java
+2
-3
TestDataDriver.java
.../main/java/org/apache/hadoop/metadata/TestDataDriver.java
+1
-2
No files found.
webapp/src/main/java/org/apache/hadoop/metadata/DemoDataDriver.java
View file @
73748b46
...
...
@@ -98,7 +98,7 @@ public class DemoDataDriver {
//Returned the Saved Table Objects
JsonParser
jp
=
new
JsonParser
();
JsonObject
jo
=
(
JsonObject
)
jp
.
parse
(
driver
.
getEntityReturnList
());
JsonArray
ja
=
jo
.
getAsJsonArray
(
"
list
"
);
JsonArray
ja
=
jo
.
getAsJsonArray
(
"
results
"
);
for
(
JsonElement
e
:
ja
)
{
JsonObject
joInner
=
(
JsonObject
)
jp
.
parse
(
driver
.
getTableEntityByGUID
(
e
.
getAsString
()));
...
...
@@ -315,8 +315,7 @@ public class DemoDataDriver {
private
void
sumbitType
(
String
typesAsJSON
,
String
type
)
throws
JSONException
{
WebResource
resource
=
service
.
path
(
"api/metadata/types/submit"
).
path
(
type
);
WebResource
resource
=
service
.
path
(
"api/metadata/types/submit"
);
ClientResponse
clientResponse
=
resource
.
accept
(
MediaType
.
APPLICATION_JSON
)
...
...
webapp/src/main/java/org/apache/hadoop/metadata/TestDataDriver.java
View file @
73748b46
...
...
@@ -185,8 +185,7 @@ public class TestDataDriver {
private
void
sumbitType
(
String
typesAsJSON
,
String
type
)
throws
JSONException
{
WebResource
resource
=
service
.
path
(
"api/metadata/types/submit"
)
.
path
(
type
);
.
path
(
"api/metadata/types/submit"
);
ClientResponse
clientResponse
=
resource
.
accept
(
MediaType
.
APPLICATION_JSON
)
...
...
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