try to find issue in test

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872001 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2019-12-26 12:55:49 +00:00
parent d240fb1378
commit 37282aae8f
2 changed files with 3 additions and 6 deletions

View File

@ -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"));
}
}