diff options
author | Yegor Kozlov <yegor@apache.org> | 2008-04-17 15:06:01 +0000 |
---|---|---|
committer | Yegor Kozlov <yegor@apache.org> | 2008-04-17 15:06:01 +0000 |
commit | 4fdf2061e683eb156a6a459b36ae7bdd99e55321 (patch) | |
tree | 79fbedb39ba169b615895ed321be9f77906b3ccd | |
parent | 42adcb4cf808e57dc24ec2a1db0826a212ce75e0 (diff) | |
download | poi-4fdf2061e683eb156a6a459b36ae7bdd99e55321.tar.gz poi-4fdf2061e683eb156a6a459b36ae7bdd99e55321.zip |
added a unit test and closed bug #28774
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@649142 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-x | src/testcases/org/apache/poi/hssf/data/28774.xls | bin | 0 -> 27136 bytes | |||
-rw-r--r-- | src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java | 11 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/hssf/data/28774.xls b/src/testcases/org/apache/poi/hssf/data/28774.xls Binary files differnew file mode 100755 index 0000000000..476f3bafe9 --- /dev/null +++ b/src/testcases/org/apache/poi/hssf/data/28774.xls diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java index 635ce640ce..7e9aeff5f7 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java @@ -877,4 +877,15 @@ public final class TestBugs extends TestCase { } assertEquals(713, rowsSeen); } + + /** + * Bug 28774: Excel will crash when opening xls-files with images. + */ + public void test28774() { + + HSSFWorkbook wb = openSample("28774.xls"); + assertTrue("no errors reading sample xls", true); + writeOutAndReadBack(wb); + assertTrue("no errors writing sample xls", true); + } } |