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
343d0b1f
Commit
343d0b1f
authored
8 years ago
by
apoorvnaik
Committed by
Madhan Neethiraj
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1570: Taxonomy test failure fix
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
7303a412
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
28 deletions
+2
-28
TaxonomyServiceTest.java
...a/org/apache/atlas/web/resources/TaxonomyServiceTest.java
+2
-28
No files found.
webapp/src/test/java/org/apache/atlas/web/resources/TaxonomyServiceTest.java
View file @
343d0b1f
...
...
@@ -81,8 +81,6 @@ public class TaxonomyServiceTest {
metadataService
,
taxonomyResourceProvider
,
termResourceProvider
,
serializer
);
Response
response
=
service
.
getTaxonomy
(
null
,
uriInfo
,
taxonomyName
);
assertTrue
(
service
.
wasTransactionInitialized
());
Request
request
=
requestCapture
.
getValue
();
Map
<
String
,
Object
>
requestProperties
=
request
.
getQueryProperties
();
assertEquals
(
requestProperties
.
size
(),
1
);
...
...
@@ -122,8 +120,6 @@ public class TaxonomyServiceTest {
metadataService
,
taxonomyResourceProvider
,
termResourceProvider
,
serializer
);
Response
response
=
service
.
getTaxonomies
(
null
,
uriInfo
);
assertTrue
(
service
.
wasTransactionInitialized
());
Request
request
=
requestCapture
.
getValue
();
assertTrue
(
request
.
getQueryProperties
().
isEmpty
());
assertEquals
(
request
.
getQueryString
(),
"name:testTaxonomy"
);
...
...
@@ -155,8 +151,6 @@ public class TaxonomyServiceTest {
metadataService
,
taxonomyResourceProvider
,
termResourceProvider
,
null
);
Response
response
=
service
.
createTaxonomy
(
body
,
null
,
uriInfo
,
"testTaxonomy"
);
assertTrue
(
service
.
wasTransactionInitialized
());
Request
request
=
requestCapture
.
getValue
();
assertEquals
(
request
.
getQueryProperties
().
size
(),
2
);
assertEquals
(
request
.
getQueryProperties
().
get
(
"name"
),
"testTaxonomy"
);
...
...
@@ -191,8 +185,6 @@ public class TaxonomyServiceTest {
metadataService
,
taxonomyResourceProvider
,
termResourceProvider
,
null
);
Response
response
=
service
.
deleteTaxonomy
(
null
,
uriInfo
,
"testTaxonomy"
);
assertTrue
(
service
.
wasTransactionInitialized
());
Request
request
=
requestCapture
.
getValue
();
assertEquals
(
request
.
getQueryProperties
().
size
(),
1
);
assertEquals
(
request
.
getQueryProperties
().
get
(
"name"
),
"testTaxonomy"
);
...
...
@@ -232,8 +224,6 @@ public class TaxonomyServiceTest {
metadataService
,
taxonomyResourceProvider
,
termResourceProvider
,
serializer
);
Response
response
=
service
.
getTaxonomyTerm
(
null
,
uriInfo
,
taxonomyName
,
termName
);
assertTrue
(
service
.
wasTransactionInitialized
());
Request
request
=
requestCapture
.
getValue
();
Map
<
String
,
Object
>
requestProperties
=
request
.
getQueryProperties
();
assertEquals
(
requestProperties
.
size
(),
1
);
...
...
@@ -274,8 +264,6 @@ public class TaxonomyServiceTest {
metadataService
,
taxonomyResourceProvider
,
termResourceProvider
,
serializer
);
Response
response
=
service
.
getTaxonomyTerms
(
null
,
uriInfo
,
"testTaxonomy"
);
assertTrue
(
service
.
wasTransactionInitialized
());
Request
request
=
requestCapture
.
getValue
();
assertEquals
(
request
.
getQueryProperties
().
size
(),
1
);
TermPath
termPath
=
(
TermPath
)
request
.
getQueryProperties
().
get
(
"termPath"
);
...
...
@@ -323,8 +311,6 @@ public class TaxonomyServiceTest {
metadataService
,
taxonomyResourceProvider
,
termResourceProvider
,
serializer
);
Response
response
=
service
.
getSubTerms
(
null
,
uriInfo
,
"testTaxonomy"
,
"testTerm"
,
"/terms/testTerm2"
);
assertTrue
(
service
.
wasTransactionInitialized
());
Request
request
=
requestCapture
.
getValue
();
assertEquals
(
request
.
getQueryProperties
().
size
(),
1
);
TermPath
termPath
=
(
TermPath
)
request
.
getQueryProperties
().
get
(
"termPath"
);
...
...
@@ -375,8 +361,6 @@ public class TaxonomyServiceTest {
metadataService
,
taxonomyResourceProvider
,
termResourceProvider
,
serializer
);
Response
response
=
service
.
getSubTerms
(
null
,
uriInfo
,
"testTaxonomy"
,
"testTerm"
,
"/terms/testTerm2/terms"
);
assertTrue
(
service
.
wasTransactionInitialized
());
Request
request
=
requestCapture
.
getValue
();
assertEquals
(
request
.
getQueryProperties
().
size
(),
1
);
TermPath
termPath
=
(
TermPath
)
request
.
getQueryProperties
().
get
(
"termPath"
);
...
...
@@ -413,8 +397,6 @@ public class TaxonomyServiceTest {
metadataService
,
taxonomyResourceProvider
,
termResourceProvider
,
null
);
Response
response
=
service
.
createTerm
(
body
,
null
,
uriInfo
,
taxonomyName
,
termName
);
assertTrue
(
service
.
wasTransactionInitialized
());
Request
request
=
requestCapture
.
getValue
();
assertEquals
(
request
.
getQueryProperties
().
size
(),
2
);
assertEquals
(
request
.
getQueryProperties
().
get
(
"description"
),
"test description"
);
...
...
@@ -453,8 +435,6 @@ public class TaxonomyServiceTest {
metadataService
,
taxonomyResourceProvider
,
termResourceProvider
,
null
);
Response
response
=
service
.
createSubTerm
(
body
,
null
,
uriInfo
,
taxonomyName
,
termName
,
"/terms/testTerm2"
);
assertTrue
(
service
.
wasTransactionInitialized
());
Request
request
=
requestCapture
.
getValue
();
assertEquals
(
request
.
getQueryProperties
().
size
(),
2
);
assertEquals
(
request
.
getQueryProperties
().
get
(
"description"
),
"test description"
);
...
...
@@ -490,8 +470,6 @@ public class TaxonomyServiceTest {
metadataService
,
taxonomyResourceProvider
,
termResourceProvider
,
null
);
Response
response
=
service
.
deleteTerm
(
null
,
uriInfo
,
"testTaxonomy"
,
"testTerm"
);
assertTrue
(
service
.
wasTransactionInitialized
());
Request
request
=
requestCapture
.
getValue
();
assertEquals
(
request
.
getQueryProperties
().
size
(),
1
);
TermPath
termPath
=
(
TermPath
)
request
.
getQueryProperties
().
get
(
"termPath"
);
...
...
@@ -526,8 +504,6 @@ public class TaxonomyServiceTest {
metadataService
,
taxonomyResourceProvider
,
termResourceProvider
,
null
);
Response
response
=
service
.
deleteSubTerm
(
null
,
uriInfo
,
"testTaxonomy"
,
"testTerm"
,
"terms/testTerm2"
);
assertTrue
(
service
.
wasTransactionInitialized
());
Request
request
=
requestCapture
.
getValue
();
assertEquals
(
request
.
getQueryProperties
().
size
(),
1
);
TermPath
termPath
=
(
TermPath
)
request
.
getQueryProperties
().
get
(
"termPath"
);
...
...
@@ -574,8 +550,5 @@ public class TaxonomyServiceTest {
return
testSerializer
;
}
public
boolean
wasTransactionInitialized
()
{
return
transactionInitialized
;
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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