Lines 21-26
import static org.junit.Assert.assertArrayEquals;
Link Here
|
21 |
import static org.junit.Assert.assertEquals; |
21 |
import static org.junit.Assert.assertEquals; |
22 |
import static org.junit.Assert.assertNotNull; |
22 |
import static org.junit.Assert.assertNotNull; |
23 |
import static org.junit.Assert.assertNull; |
23 |
import static org.junit.Assert.assertNull; |
|
|
24 |
import static org.junit.Assert.assertFalse; |
24 |
import static org.junit.Assert.assertTrue; |
25 |
import static org.junit.Assert.assertTrue; |
25 |
import static org.junit.Assert.fail; |
26 |
import static org.junit.Assert.fail; |
26 |
|
27 |
|
Lines 93-98
import org.openxmlformats.schemas.presentationml.x2006.main.CTShape;
Link Here
|
93 |
public class TestXSLFBugs { |
94 |
public class TestXSLFBugs { |
94 |
private static final POIDataSamples slTests = POIDataSamples.getSlideShowInstance(); |
95 |
private static final POIDataSamples slTests = POIDataSamples.getSlideShowInstance(); |
95 |
|
96 |
|
|
|
97 |
@Test |
98 |
public void bug62929() throws Exception { |
99 |
XMLSlideShow ss1 = XSLFTestDataSamples.openSampleDocument("missing-blip-fill.pptx"); |
100 |
|
101 |
assertEquals(1, ss1.getSlides().size()); |
102 |
|
103 |
XSLFSlide slide = ss1.getSlides().get(0); |
104 |
|
105 |
assertEquals(slide.getShapes().size(), 1); |
106 |
|
107 |
XSLFPictureShape picture = (XSLFPictureShape)slide.getShapes().get(0); |
108 |
|
109 |
assertEquals(picture.getShapeId(), 662); |
110 |
assertFalse(picture.isExternalLinkedPicture()); |
111 |
assertNull(picture.getPictureData()); |
112 |
assertNull(picture.getPictureLink()); |
113 |
assertNull(picture.getClipping()); |
114 |
|
115 |
ss1.close(); |
116 |
} |
117 |
|
96 |
@Test |
118 |
@Test |
97 |
public void bug62736() throws Exception { |
119 |
public void bug62736() throws Exception { |
98 |
XMLSlideShow ss1 = XSLFTestDataSamples.openSampleDocument("bug62736.pptx"); |
120 |
XMLSlideShow ss1 = XSLFTestDataSamples.openSampleDocument("bug62736.pptx"); |