ATLAS-2897: Elegant handling of empty zip files. Unit test fix.

Project: http://git-wip-us.apache.org/repos/asf/atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/21ab886c
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/21ab886c
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/21ab886c

Branch: refs/heads/branch-1.0
Commit: 21ab886cf78580aa0457dae2a0ebdc4b12799b21
Parents: 19f9fdd
Author: Ashutosh Mestry <ames...@hortonworks.com>
Authored: Mon Oct 1 10:53:38 2018 -0700
Committer: Ashutosh Mestry <ames...@hortonworks.com>
Committed: Thu Nov 1 15:42:56 2018 -0700

----------------------------------------------------------------------
 .../java/org/apache/atlas/repository/impexp/ZipSourceTest.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/atlas/blob/21ab886c/repository/src/test/java/org/apache/atlas/repository/impexp/ZipSourceTest.java
----------------------------------------------------------------------
diff --git 
a/repository/src/test/java/org/apache/atlas/repository/impexp/ZipSourceTest.java
 
b/repository/src/test/java/org/apache/atlas/repository/impexp/ZipSourceTest.java
index f0034fa..7436dc0 100644
--- 
a/repository/src/test/java/org/apache/atlas/repository/impexp/ZipSourceTest.java
+++ 
b/repository/src/test/java/org/apache/atlas/repository/impexp/ZipSourceTest.java
@@ -56,7 +56,7 @@ public class ZipSourceTest {
         return getZipSource("sales-v1-full.zip");
     }
 
-    @Test
+    @Test(expectedExceptions = AtlasBaseException.class)
     public void improperInit_ReturnsNullCreationOrder() throws IOException, 
AtlasBaseException {
         byte bytes[] = new byte[10];
         ByteArrayInputStream bais = new ByteArrayInputStream(bytes);

Reply via email to