This is an automated email from the ASF dual-hosted git repository.

amestry pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/master by this push:
     new 3def768  ATLAS-3150: Fixes for breaking unit tests. Fixed reference 
from JUnit to TestNG.
3def768 is described below

commit 3def7682de67e1a37c9fa34b3232ded56f7583ed
Author: Ashutosh Mestry <ames...@hortonworks.com>
AuthorDate: Thu Apr 18 13:39:43 2019 -0700

    ATLAS-3150: Fixes for breaking unit tests. Fixed reference from JUnit to 
TestNG.
---
 .../org/apache/atlas/repository/migration/ComplexAttributesTest.java  | 2 +-
 .../org/apache/atlas/repository/migration/HiveParititionTest.java     | 2 +-
 .../java/org/apache/atlas/repository/migration/HiveStocksTest.java    | 2 +-
 .../src/test/java/org/apache/atlas/repository/migration/PathTest.java | 2 +-
 .../atlas/repository/migration/TypesWithClassificationTest.java       | 2 +-
 .../atlas/repository/store/graph/v2/AtlasComplexAttributesTest.java   | 4 ++--
 6 files changed, 7 insertions(+), 7 deletions(-)

diff --git 
a/repository/src/test/java/org/apache/atlas/repository/migration/ComplexAttributesTest.java
 
b/repository/src/test/java/org/apache/atlas/repository/migration/ComplexAttributesTest.java
index 4b7cfb2..51dd3c5 100644
--- 
a/repository/src/test/java/org/apache/atlas/repository/migration/ComplexAttributesTest.java
+++ 
b/repository/src/test/java/org/apache/atlas/repository/migration/ComplexAttributesTest.java
@@ -43,7 +43,7 @@ public class ComplexAttributesTest extends 
MigrationBaseAsserts {
         String ENTITY_TYPE = "entity_type";
         String ENTITY_WITH_COMPLEX_COLL_TYPE = 
"entity_with_complex_collection_attr";
 
-        final int EXPECTED_TOTAL_COUNT  = 218;
+        final int EXPECTED_TOTAL_COUNT  = 217;
         final int EXPECTED_ENTITY_TYPE_COUNT = 16;
         final int EXPECTED_STRUCT_TYPE_COUNT = 3;
         final int EXPECTED_ENTITY_WITH_COMPLEX_COLL_TYPE_COUNT = 1;
diff --git 
a/repository/src/test/java/org/apache/atlas/repository/migration/HiveParititionTest.java
 
b/repository/src/test/java/org/apache/atlas/repository/migration/HiveParititionTest.java
index 54c482e..7567daa 100644
--- 
a/repository/src/test/java/org/apache/atlas/repository/migration/HiveParititionTest.java
+++ 
b/repository/src/test/java/org/apache/atlas/repository/migration/HiveParititionTest.java
@@ -40,7 +40,7 @@ public class HiveParititionTest extends  MigrationBaseAsserts 
{
 
     @Test
     public void fileImporterTest() throws IOException, AtlasBaseException {
-        final int EXPECTED_TOTAL_COUNT = 145;
+        final int EXPECTED_TOTAL_COUNT = 144;
         final int EXPECTED_DB_COUNT = 1;
         final int EXPECTED_TABLE_COUNT = 2;
         final int EXPECTED_COLUMN_COUNT = 7;
diff --git 
a/repository/src/test/java/org/apache/atlas/repository/migration/HiveStocksTest.java
 
b/repository/src/test/java/org/apache/atlas/repository/migration/HiveStocksTest.java
index 283a5c4..90e714c 100644
--- 
a/repository/src/test/java/org/apache/atlas/repository/migration/HiveStocksTest.java
+++ 
b/repository/src/test/java/org/apache/atlas/repository/migration/HiveStocksTest.java
@@ -38,7 +38,7 @@ public class HiveStocksTest extends MigrationBaseAsserts {
 
     @Test
     public void migrateStocks() throws AtlasBaseException, IOException {
-        final int EXPECTED_TOTAL_COUNT  = 192;
+        final int EXPECTED_TOTAL_COUNT  = 191;
         final int EXPECTED_DB_COUNT     = 1;
         final int EXPECTED_TABLE_COUNT  = 1;
         final int EXPECTED_COLUMN_COUNT = 7;
diff --git 
a/repository/src/test/java/org/apache/atlas/repository/migration/PathTest.java 
b/repository/src/test/java/org/apache/atlas/repository/migration/PathTest.java
index 44f59e2..cd01c70 100644
--- 
a/repository/src/test/java/org/apache/atlas/repository/migration/PathTest.java
+++ 
b/repository/src/test/java/org/apache/atlas/repository/migration/PathTest.java
@@ -46,7 +46,7 @@ public class PathTest extends MigrationBaseAsserts {
 
     @Test
     public void migrationImport() throws IOException, AtlasBaseException {
-        final int EXPECTED_TOTAL_COUNT = 93;
+        final int EXPECTED_TOTAL_COUNT = 92;
 
         runFileImporter("path_db");
 
diff --git 
a/repository/src/test/java/org/apache/atlas/repository/migration/TypesWithClassificationTest.java
 
b/repository/src/test/java/org/apache/atlas/repository/migration/TypesWithClassificationTest.java
index 9e7e2a6..653144d 100644
--- 
a/repository/src/test/java/org/apache/atlas/repository/migration/TypesWithClassificationTest.java
+++ 
b/repository/src/test/java/org/apache/atlas/repository/migration/TypesWithClassificationTest.java
@@ -39,7 +39,7 @@ public class TypesWithClassificationTest extends 
MigrationBaseAsserts {
 
     @Test
     public void verify() throws IOException, AtlasBaseException {
-        int EXPECTED_TOTAL_COUNT = 63;
+        int EXPECTED_TOTAL_COUNT = 62;
         String ENTITY_TYPE = "ComplexTraitType";
         String LEGACY_TYPE_TRAIT = "legacy_traitprayivofx4";
         String LEGACY_TYPE_VENDOR_PII = "legacy_VENDOR_PII";
diff --git 
a/repository/src/test/java/org/apache/atlas/repository/store/graph/v2/AtlasComplexAttributesTest.java
 
b/repository/src/test/java/org/apache/atlas/repository/store/graph/v2/AtlasComplexAttributesTest.java
index b95c067..4c8440d 100644
--- 
a/repository/src/test/java/org/apache/atlas/repository/store/graph/v2/AtlasComplexAttributesTest.java
+++ 
b/repository/src/test/java/org/apache/atlas/repository/store/graph/v2/AtlasComplexAttributesTest.java
@@ -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.repository.graph.GraphHelper.getStatus;
 import static org.apache.atlas.type.AtlasTypeUtil.getAtlasObjectId;
+import static org.testng.Assert.assertEquals;
 import static org.testng.Assert.assertNull;
-import static org.testng.AssertJUnit.assertEquals;
 
 @Guice(modules = TestModules.TestOnlyModule.class)
 public class AtlasComplexAttributesTest extends AtlasEntityTestBase {
@@ -218,7 +218,7 @@ public class AtlasComplexAttributesTest extends 
AtlasEntityTestBase {
 
         assertNull(updatedSimpleEntity.getAttribute("stringAtrr"));
         assertEquals(updatedSimpleEntity.getAttribute("mapOfStrings"), 
Collections.emptyMap());
-        assertEquals(updatedSimpleEntity.getAttribute("arrayOfStrings"), 
Collections.emptyList());
+        assertNull(updatedSimpleEntity.getAttribute("arrayOfStrings"));
 
         updatedSimpleEntity.setAttribute("stringAtrr", "");
         updatedSimpleEntity.setAttribute("mapOfStrings", null);

Reply via email to