Repository: incubator-atlas Updated Branches: refs/heads/0.8-incubating ef6f51a56 -> 156f04f97
ATLAS-1770: Fix HardDeleteHandlerV1Test and SoftDeleteHandlerV1Test failures during setup Signed-off-by: Sarath Subramanian <[email protected]> (cherry picked from commit 96d9a0ec283aacaf05ddbfa504ef4f06d133d92e) Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/156f04f9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/156f04f9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/156f04f9 Branch: refs/heads/0.8-incubating Commit: 156f04f9759e8d47838b608b91b1b723ad236d32 Parents: ef6f51a Author: Yussuf Shaikh <[email protected]> Authored: Tue May 9 14:53:27 2017 -0700 Committer: Sarath Subramanian <[email protected]> Committed: Tue May 9 15:00:21 2017 -0700 ---------------------------------------------------------------------- .../org/apache/atlas/repository/impexp/ExportServiceTest.java | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/156f04f9/repository/src/test/java/org/apache/atlas/repository/impexp/ExportServiceTest.java ---------------------------------------------------------------------- diff --git a/repository/src/test/java/org/apache/atlas/repository/impexp/ExportServiceTest.java b/repository/src/test/java/org/apache/atlas/repository/impexp/ExportServiceTest.java index a7fc24c..b67ec94 100644 --- a/repository/src/test/java/org/apache/atlas/repository/impexp/ExportServiceTest.java +++ b/repository/src/test/java/org/apache/atlas/repository/impexp/ExportServiceTest.java @@ -27,6 +27,7 @@ import org.apache.atlas.model.impexp.AtlasExportResult; import org.apache.atlas.model.instance.AtlasEntity; import org.apache.atlas.model.instance.AtlasObjectId; import org.apache.atlas.model.typedef.AtlasTypesDef; +import org.apache.atlas.repository.graph.AtlasGraphProvider; import org.apache.atlas.repository.store.bootstrap.AtlasTypeDefStoreInitializer; import org.apache.atlas.repository.store.graph.v1.AtlasEntityChangeNotifier; import org.apache.atlas.repository.store.graph.v1.AtlasEntityStoreV1; @@ -39,6 +40,7 @@ import org.testng.Assert; import org.powermock.reflect.Whitebox; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeTest; import org.testng.annotations.Guice; @@ -95,6 +97,11 @@ public class ExportServiceTest { exportService = new ExportService(typeRegistry); } + @AfterClass + public void clear() { + AtlasGraphProvider.cleanup(); + } + private AtlasExportRequest getRequestForFullFetch() { AtlasExportRequest request = new AtlasExportRequest();
