Repository: incubator-atlas Updated Branches: refs/heads/master 235f4e9e2 -> 96d9a0ec2
ATLAS-1770: Fix HardDeleteHandlerV1Test and SoftDeleteHandlerV1Test failures during setup Signed-off-by: Sarath Subramanian <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/96d9a0ec Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/96d9a0ec Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/96d9a0ec Branch: refs/heads/master Commit: 96d9a0ec283aacaf05ddbfa504ef4f06d133d92e Parents: 235f4e9 Author: Yussuf Shaikh <[email protected]> Authored: Tue May 9 14:53:27 2017 -0700 Committer: Sarath Subramanian <[email protected]> Committed: Tue May 9 14:53:27 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/96d9a0ec/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 cd355c3..13452ca 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.slf4j.Logger; import org.slf4j.LoggerFactory; import org.testng.Assert; import org.powermock.reflect.Whitebox; +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();
