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
9f643b5b
Commit
9f643b5b
authored
8 years ago
by
Suma Shivaprasad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1259 Fix Test and compilation failure caused bt ATLAS-1233 changes (apoorvnaik via sumasai)
parent
315b5d18
master
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
AtlasTypeUtil.java
intg/src/main/java/org/apache/atlas/type/AtlasTypeUtil.java
+2
-0
release-log.txt
release-log.txt
+1
-0
AtlasTypeDefGraphStoreTest.java
...as/repository/store/graph/AtlasTypeDefGraphStoreTest.java
+8
-2
No files found.
intg/src/main/java/org/apache/atlas/type/AtlasTypeUtil.java
View file @
9f643b5b
...
...
@@ -30,11 +30,13 @@ import org.apache.atlas.model.typedef.AtlasStructDef.AtlasAttributeDef.Cardinali
import
org.apache.atlas.model.typedef.AtlasTypesDef
;
import
org.apache.commons.lang.StringUtils
;
import
java.util.Arrays
;
import
java.util.Collections
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Set
;
import
java.util.Arrays
;
import
static
org
.
apache
.
atlas
.
model
.
typedef
.
AtlasBaseTypeDef
.
ATLAS_TYPE_ARRAY_PREFIX
;
import
static
org
.
apache
.
atlas
.
model
.
typedef
.
AtlasBaseTypeDef
.
ATLAS_TYPE_ARRAY_SUFFIX
;
...
...
This diff is collapsed.
Click to expand it.
release-log.txt
View file @
9f643b5b
...
...
@@ -9,6 +9,7 @@ ATLAS-1060 Add composite indexes for exact match performance improvements for al
ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai)
ALL CHANGES:
ATLAS-1259 Fix Test and compilation failure caused bt ATLAS-1233 changes (apoorvnaik via sumasai)
ATLAS-1248 /bin/atlas_stop.py not killing the process and process is found alive even after 30 secs (zhangqiang2 via sumasai)
ATLAS-1258 BugFix for Indexer NPE on StructDef lookup (apoorvnaik via sumasai)
ATLAS-1233 UnitTests for the TypeDefStores (apoorvnaik via sumasai)
...
...
This diff is collapsed.
Click to expand it.
repository/src/test/java/org/apache/atlas/repository/store/graph/AtlasTypeDefGraphStoreTest.java
View file @
9f643b5b
...
...
@@ -342,7 +342,10 @@ public class AtlasTypeDefGraphStoreTest {
// Test Classification with supertype
List
<
AtlasClassificationDef
>
classificationDefs
=
TestUtilsV2
.
getClassificationWithValidSuperType
();
AtlasTypesDef
toCreate
=
new
AtlasTypesDef
(
null
,
null
,
classificationDefs
,
null
);
AtlasTypesDef
toCreate
=
new
AtlasTypesDef
(
Collections
.<
AtlasEnumDef
>
emptyList
(),
Collections
.<
AtlasStructDef
>
emptyList
(),
classificationDefs
,
Collections
.<
AtlasEntityDef
>
emptyList
());
try
{
AtlasTypesDef
created
=
typeDefStore
.
createTypesDef
(
toCreate
);
assertEquals
(
created
.
getClassificationDefs
(),
toCreate
.
getClassificationDefs
(),
...
...
@@ -353,7 +356,10 @@ public class AtlasTypeDefGraphStoreTest {
// Test Entity with supertype
List
<
AtlasEntityDef
>
entityDefs
=
TestUtilsV2
.
getEntityWithValidSuperType
();
toCreate
=
new
AtlasTypesDef
(
null
,
null
,
null
,
entityDefs
);
toCreate
=
new
AtlasTypesDef
(
Collections
.<
AtlasEnumDef
>
emptyList
(),
Collections
.<
AtlasStructDef
>
emptyList
(),
Collections
.<
AtlasClassificationDef
>
emptyList
(),
entityDefs
);
try
{
AtlasTypesDef
created
=
typeDefStore
.
createTypesDef
(
toCreate
);
assertEquals
(
created
.
getEntityDefs
(),
toCreate
.
getEntityDefs
(),
...
...
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