Commit 96d9a0ec by Yussuf Shaikh Committed by Sarath Subramanian

ATLAS-1770: Fix HardDeleteHandlerV1Test and SoftDeleteHandlerV1Test failures during setup

parent 235f4e9e
...@@ -27,6 +27,7 @@ import org.apache.atlas.model.impexp.AtlasExportResult; ...@@ -27,6 +27,7 @@ import org.apache.atlas.model.impexp.AtlasExportResult;
import org.apache.atlas.model.instance.AtlasEntity; import org.apache.atlas.model.instance.AtlasEntity;
import org.apache.atlas.model.instance.AtlasObjectId; import org.apache.atlas.model.instance.AtlasObjectId;
import org.apache.atlas.model.typedef.AtlasTypesDef; 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.bootstrap.AtlasTypeDefStoreInitializer;
import org.apache.atlas.repository.store.graph.v1.AtlasEntityChangeNotifier; import org.apache.atlas.repository.store.graph.v1.AtlasEntityChangeNotifier;
import org.apache.atlas.repository.store.graph.v1.AtlasEntityStoreV1; import org.apache.atlas.repository.store.graph.v1.AtlasEntityStoreV1;
...@@ -39,6 +40,7 @@ import org.slf4j.Logger; ...@@ -39,6 +40,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.testng.Assert; import org.testng.Assert;
import org.powermock.reflect.Whitebox; import org.powermock.reflect.Whitebox;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeTest; import org.testng.annotations.BeforeTest;
import org.testng.annotations.Guice; import org.testng.annotations.Guice;
...@@ -95,6 +97,11 @@ public class ExportServiceTest { ...@@ -95,6 +97,11 @@ public class ExportServiceTest {
exportService = new ExportService(typeRegistry); exportService = new ExportService(typeRegistry);
} }
@AfterClass
public void clear() {
AtlasGraphProvider.cleanup();
}
private AtlasExportRequest getRequestForFullFetch() { private AtlasExportRequest getRequestForFullFetch() {
AtlasExportRequest request = new AtlasExportRequest(); AtlasExportRequest request = new AtlasExportRequest();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment