This is an automated email from the ASF dual-hosted git repository. sarath pushed a commit to branch branch-2.0 in repository https://gitbox.apache.org/repos/asf/atlas.git
commit 032d9eb96445997891669d010227f1e6fa38a8e0 Author: Ashutosh Mestry <[email protected]> AuthorDate: Thu Sep 12 13:46:12 2019 -0700 ATLAS-3396: ZipSourceWithBackingStore implementation. Empty ZIP unit test fix. (cherry picked from commit e6b9e9ad25b3b0538c0f864ab534cd16e9dd91b9) --- .../java/org/apache/atlas/repository/impexp/ImportServiceTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repository/src/test/java/org/apache/atlas/repository/impexp/ImportServiceTest.java b/repository/src/test/java/org/apache/atlas/repository/impexp/ImportServiceTest.java index 33fe0ad..1bfe62b 100644 --- a/repository/src/test/java/org/apache/atlas/repository/impexp/ImportServiceTest.java +++ b/repository/src/test/java/org/apache/atlas/repository/impexp/ImportServiceTest.java @@ -40,6 +40,7 @@ import org.apache.atlas.store.AtlasTypeDefStore; import org.apache.atlas.type.AtlasClassificationType; import org.apache.atlas.type.AtlasTypeRegistry; import org.apache.commons.lang.StringUtils; +import org.apache.tinkerpop.shaded.kryo.io.Input; import org.mockito.stubbing.Answer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -463,6 +464,6 @@ public class ImportServiceTest extends ExportImportTestBase { @Test(expectedExceptions = AtlasBaseException.class) public void importEmptyZip() throws IOException, AtlasBaseException { - getZipSource("empty.zip"); + new ZipSource((InputStream) getZipSource("empty.zip")[0][0]); } }
