mirror of https://github.com/apache/poi.git
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:
parent
d240fb1378
commit
37282aae8f
|
@ -308,7 +308,7 @@ public final class TestXWPFParagraph {
|
|||
assertEquals("1", p.getNumIlvl().toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testAddingRuns() throws IOException {
|
||||
try (XWPFDocument doc = XWPFTestDataSamples.openSampleDocument("sample.docx")) {
|
||||
|
|
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue