diff options
author | Nick Burch <nick@apache.org> | 2015-07-06 21:39:42 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2015-07-06 21:39:42 +0000 |
commit | d1bcdb0bcdd4e3a6e74b33a18f5dc4b619a0e640 (patch) | |
tree | cd224129aed04ae04a9ea5a4d7c656b3316890cd /src/testcases/org/apache/poi/poifs | |
parent | 92764ff10d3059218b67fd5a15cb7c37db30bcd7 (diff) | |
download | poi-d1bcdb0bcdd4e3a6e74b33a18f5dc4b619a0e640.tar.gz poi-d1bcdb0bcdd4e3a6e74b33a18f5dc4b619a0e640.zip |
When writing the mini-stream, set the size of it on the root property #58061
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1689505 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/poifs')
-rw-r--r-- | src/testcases/org/apache/poi/poifs/filesystem/TestNPOIFSFileSystem.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/poifs/filesystem/TestNPOIFSFileSystem.java b/src/testcases/org/apache/poi/poifs/filesystem/TestNPOIFSFileSystem.java index a476233ec7..ed598ed6cc 100644 --- a/src/testcases/org/apache/poi/poifs/filesystem/TestNPOIFSFileSystem.java +++ b/src/testcases/org/apache/poi/poifs/filesystem/TestNPOIFSFileSystem.java @@ -1428,6 +1428,10 @@ public final class TestNPOIFSFileSystem { emptyDoc = (DocumentEntry)testDir.getEntry("empty-3"); assertContentsMatches(empty, emptyDoc); + // Check that a mini-stream was assigned, with one block used + assertEquals(3, testDir.getProperty().getStartBlock()); + assertEquals(64, testDir.getProperty().getSize()); + // All done fs.close(); } |