mirror of https://github.com/apache/poi.git
Adjust test to not require src/documentation to be available
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1849837 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a6e9421d18
commit
825418d520
|
@ -257,12 +257,10 @@ public class TestXSLFPictureShape {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void renderSvgImage() throws Exception {
|
public void renderSvgImage() throws Exception {
|
||||||
String dataDirName = System.getProperty(TEST_PROPERTY);
|
|
||||||
final String SVG_FILE = (dataDirName != null ? "../" : "") + "src/documentation/resources/images/project-header.svg";
|
|
||||||
XMLSlideShow ppt = new XMLSlideShow();
|
XMLSlideShow ppt = new XMLSlideShow();
|
||||||
XSLFSlide slide = ppt.createSlide();
|
XSLFSlide slide = ppt.createSlide();
|
||||||
|
|
||||||
XSLFPictureData svgPic = ppt.addPicture(new File(dataDirName, SVG_FILE), PictureType.SVG);
|
XSLFPictureData svgPic = ppt.addPicture(POIDataSamples.getDocumentInstance().getFile("../project-header.svg"), PictureType.SVG);
|
||||||
XSLFPictureShape shape = XSLFPictureShape.addSvgImage(slide, svgPic, PictureType.JPEG, null);
|
XSLFPictureShape shape = XSLFPictureShape.addSvgImage(slide, svgPic, PictureType.JPEG, null);
|
||||||
|
|
||||||
Rectangle2D anchor = shape.getAnchor();
|
Rectangle2D anchor = shape.getAnchor();
|
||||||
|
|
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 72 KiB |
Loading…
Reference in New Issue