aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2019-12-26 12:55:49 +0000
committerPJ Fanning <fanningpj@apache.org>2019-12-26 12:55:49 +0000
commit37282aae8f25970b157c40ae0888684f974ba666 (patch)
tree006f1bf735cd50cd48afbf010693e12d7781856d /src/testcases/org
parentd240fb137878ee29e3fab4ae8b1cff0fe960c41d (diff)
downloadpoi-37282aae8f25970b157c40ae0888684f974ba666.tar.gz
poi-37282aae8f25970b157c40ae0888684f974ba666.zip
try to find issue in test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872001 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org')
-rw-r--r--src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPictureData.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPictureData.java b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPictureData.java
index afe1cb501b..1a330f0b38 100644
--- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPictureData.java
+++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPictureData.java
@@ -28,7 +28,6 @@ import javax.imageio.ImageIO;
import junit.framework.TestCase;
import org.apache.poi.hssf.HSSFTestDataSamples;
-import org.junit.Assume;
import org.junit.BeforeClass;
/**
@@ -85,8 +84,7 @@ public final class TestHSSFPictureData extends TestCase{
}
}
} catch (IIOException e) {
- Assume.assumeFalse(e.getMessage().contains("Can't create cache file"));
- throw e;
+ assertFalse(e.getMessage(), e.getMessage().contains("Can't create cache file"));
}
}
@@ -110,8 +108,7 @@ public final class TestHSSFPictureData extends TestCase{
assertEquals(HSSFWorkbook.PICTURE_TYPE_PNG, pict.getFormat());
assertEquals("image/png", pict.getMimeType());
} catch (IIOException e) {
- Assume.assumeFalse(e.getMessage().contains("Can't create cache file"));
- throw e;
+ assertFalse(e.getMessage(), e.getMessage().contains("Can't create cache file"));
}
}