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
3def7682
Commit
3def7682
authored
Apr 18, 2019
by
Ashutosh Mestry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3150: Fixes for breaking unit tests. Fixed reference from JUnit to TestNG.
parent
24c9556c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
ComplexAttributesTest.java
...che/atlas/repository/migration/ComplexAttributesTest.java
+1
-1
HiveParititionTest.java
...apache/atlas/repository/migration/HiveParititionTest.java
+1
-1
HiveStocksTest.java
...org/apache/atlas/repository/migration/HiveStocksTest.java
+1
-1
PathTest.java
.../java/org/apache/atlas/repository/migration/PathTest.java
+1
-1
TypesWithClassificationTest.java
...las/repository/migration/TypesWithClassificationTest.java
+1
-1
AtlasComplexAttributesTest.java
...repository/store/graph/v2/AtlasComplexAttributesTest.java
+2
-2
No files found.
repository/src/test/java/org/apache/atlas/repository/migration/ComplexAttributesTest.java
View file @
3def7682
...
@@ -43,7 +43,7 @@ public class ComplexAttributesTest extends MigrationBaseAsserts {
...
@@ -43,7 +43,7 @@ public class ComplexAttributesTest extends MigrationBaseAsserts {
String
ENTITY_TYPE
=
"entity_type"
;
String
ENTITY_TYPE
=
"entity_type"
;
String
ENTITY_WITH_COMPLEX_COLL_TYPE
=
"entity_with_complex_collection_attr"
;
String
ENTITY_WITH_COMPLEX_COLL_TYPE
=
"entity_with_complex_collection_attr"
;
final
int
EXPECTED_TOTAL_COUNT
=
21
8
;
final
int
EXPECTED_TOTAL_COUNT
=
21
7
;
final
int
EXPECTED_ENTITY_TYPE_COUNT
=
16
;
final
int
EXPECTED_ENTITY_TYPE_COUNT
=
16
;
final
int
EXPECTED_STRUCT_TYPE_COUNT
=
3
;
final
int
EXPECTED_STRUCT_TYPE_COUNT
=
3
;
final
int
EXPECTED_ENTITY_WITH_COMPLEX_COLL_TYPE_COUNT
=
1
;
final
int
EXPECTED_ENTITY_WITH_COMPLEX_COLL_TYPE_COUNT
=
1
;
...
...
repository/src/test/java/org/apache/atlas/repository/migration/HiveParititionTest.java
View file @
3def7682
...
@@ -40,7 +40,7 @@ public class HiveParititionTest extends MigrationBaseAsserts {
...
@@ -40,7 +40,7 @@ public class HiveParititionTest extends MigrationBaseAsserts {
@Test
@Test
public
void
fileImporterTest
()
throws
IOException
,
AtlasBaseException
{
public
void
fileImporterTest
()
throws
IOException
,
AtlasBaseException
{
final
int
EXPECTED_TOTAL_COUNT
=
14
5
;
final
int
EXPECTED_TOTAL_COUNT
=
14
4
;
final
int
EXPECTED_DB_COUNT
=
1
;
final
int
EXPECTED_DB_COUNT
=
1
;
final
int
EXPECTED_TABLE_COUNT
=
2
;
final
int
EXPECTED_TABLE_COUNT
=
2
;
final
int
EXPECTED_COLUMN_COUNT
=
7
;
final
int
EXPECTED_COLUMN_COUNT
=
7
;
...
...
repository/src/test/java/org/apache/atlas/repository/migration/HiveStocksTest.java
View file @
3def7682
...
@@ -38,7 +38,7 @@ public class HiveStocksTest extends MigrationBaseAsserts {
...
@@ -38,7 +38,7 @@ public class HiveStocksTest extends MigrationBaseAsserts {
@Test
@Test
public
void
migrateStocks
()
throws
AtlasBaseException
,
IOException
{
public
void
migrateStocks
()
throws
AtlasBaseException
,
IOException
{
final
int
EXPECTED_TOTAL_COUNT
=
19
2
;
final
int
EXPECTED_TOTAL_COUNT
=
19
1
;
final
int
EXPECTED_DB_COUNT
=
1
;
final
int
EXPECTED_DB_COUNT
=
1
;
final
int
EXPECTED_TABLE_COUNT
=
1
;
final
int
EXPECTED_TABLE_COUNT
=
1
;
final
int
EXPECTED_COLUMN_COUNT
=
7
;
final
int
EXPECTED_COLUMN_COUNT
=
7
;
...
...
repository/src/test/java/org/apache/atlas/repository/migration/PathTest.java
View file @
3def7682
...
@@ -46,7 +46,7 @@ public class PathTest extends MigrationBaseAsserts {
...
@@ -46,7 +46,7 @@ public class PathTest extends MigrationBaseAsserts {
@Test
@Test
public
void
migrationImport
()
throws
IOException
,
AtlasBaseException
{
public
void
migrationImport
()
throws
IOException
,
AtlasBaseException
{
final
int
EXPECTED_TOTAL_COUNT
=
9
3
;
final
int
EXPECTED_TOTAL_COUNT
=
9
2
;
runFileImporter
(
"path_db"
);
runFileImporter
(
"path_db"
);
...
...
repository/src/test/java/org/apache/atlas/repository/migration/TypesWithClassificationTest.java
View file @
3def7682
...
@@ -39,7 +39,7 @@ public class TypesWithClassificationTest extends MigrationBaseAsserts {
...
@@ -39,7 +39,7 @@ public class TypesWithClassificationTest extends MigrationBaseAsserts {
@Test
@Test
public
void
verify
()
throws
IOException
,
AtlasBaseException
{
public
void
verify
()
throws
IOException
,
AtlasBaseException
{
int
EXPECTED_TOTAL_COUNT
=
6
3
;
int
EXPECTED_TOTAL_COUNT
=
6
2
;
String
ENTITY_TYPE
=
"ComplexTraitType"
;
String
ENTITY_TYPE
=
"ComplexTraitType"
;
String
LEGACY_TYPE_TRAIT
=
"legacy_traitprayivofx4"
;
String
LEGACY_TYPE_TRAIT
=
"legacy_traitprayivofx4"
;
String
LEGACY_TYPE_VENDOR_PII
=
"legacy_VENDOR_PII"
;
String
LEGACY_TYPE_VENDOR_PII
=
"legacy_VENDOR_PII"
;
...
...
repository/src/test/java/org/apache/atlas/repository/store/graph/v2/AtlasComplexAttributesTest.java
View file @
3def7682
...
@@ -53,8 +53,8 @@ import static org.apache.atlas.TestUtilsV2.ENTITY_TYPE_WITH_SIMPLE_ATTR;
...
@@ -53,8 +53,8 @@ import static org.apache.atlas.TestUtilsV2.ENTITY_TYPE_WITH_SIMPLE_ATTR;
import
static
org
.
apache
.
atlas
.
TestUtilsV2
.
NAME
;
import
static
org
.
apache
.
atlas
.
TestUtilsV2
.
NAME
;
import
static
org
.
apache
.
atlas
.
repository
.
graph
.
GraphHelper
.
getStatus
;
import
static
org
.
apache
.
atlas
.
repository
.
graph
.
GraphHelper
.
getStatus
;
import
static
org
.
apache
.
atlas
.
type
.
AtlasTypeUtil
.
getAtlasObjectId
;
import
static
org
.
apache
.
atlas
.
type
.
AtlasTypeUtil
.
getAtlasObjectId
;
import
static
org
.
testng
.
Assert
.
assertEquals
;
import
static
org
.
testng
.
Assert
.
assertNull
;
import
static
org
.
testng
.
Assert
.
assertNull
;
import
static
org
.
testng
.
AssertJUnit
.
assertEquals
;
@Guice
(
modules
=
TestModules
.
TestOnlyModule
.
class
)
@Guice
(
modules
=
TestModules
.
TestOnlyModule
.
class
)
public
class
AtlasComplexAttributesTest
extends
AtlasEntityTestBase
{
public
class
AtlasComplexAttributesTest
extends
AtlasEntityTestBase
{
...
@@ -218,7 +218,7 @@ public class AtlasComplexAttributesTest extends AtlasEntityTestBase {
...
@@ -218,7 +218,7 @@ public class AtlasComplexAttributesTest extends AtlasEntityTestBase {
assertNull
(
updatedSimpleEntity
.
getAttribute
(
"stringAtrr"
));
assertNull
(
updatedSimpleEntity
.
getAttribute
(
"stringAtrr"
));
assertEquals
(
updatedSimpleEntity
.
getAttribute
(
"mapOfStrings"
),
Collections
.
emptyMap
());
assertEquals
(
updatedSimpleEntity
.
getAttribute
(
"mapOfStrings"
),
Collections
.
emptyMap
());
assert
Equals
(
updatedSimpleEntity
.
getAttribute
(
"arrayOfStrings"
),
Collections
.
emptyList
(
));
assert
Null
(
updatedSimpleEntity
.
getAttribute
(
"arrayOfStrings"
));
updatedSimpleEntity
.
setAttribute
(
"stringAtrr"
,
""
);
updatedSimpleEntity
.
setAttribute
(
"stringAtrr"
,
""
);
updatedSimpleEntity
.
setAttribute
(
"mapOfStrings"
,
null
);
updatedSimpleEntity
.
setAttribute
(
"mapOfStrings"
,
null
);
...
...
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