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/67871413
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/67871413
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/67871413

Branch: refs/heads/master
Commit: 678714134342f749465c61ec70a4c3ba672e7379
Parents: 5fe6d83
Author: Ashutosh Mestry <[email protected]>
Authored: Mon Oct 1 10:53:38 2018 -0700
Committer: Ashutosh Mestry <[email protected]>
Committed: Thu Oct 11 17:21:27 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/67871413/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