diff options
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPictureData.java')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPictureData.java | 7 |
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")); } } |