From 6d1a5e0db92e0c354791fd960e99e0b7a1c7e82b Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Fri, 4 Dec 2020 19:59:16 +0000 Subject: [PATCH] add more classes for LinkVideoToPptx example git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884114 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/xslf/usermodel/TestXSLFExamples.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFExamples.java b/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFExamples.java index b0a36beb4f..87d73c96ea 100644 --- a/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFExamples.java +++ b/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFExamples.java @@ -28,6 +28,7 @@ import java.net.URISyntaxException; import javax.xml.namespace.QName; +import org.apache.poi.POIDataSamples; import org.apache.poi.openxml4j.opc.PackagePart; import org.apache.poi.openxml4j.opc.PackageRelationship; import org.apache.poi.openxml4j.opc.TargetMode; @@ -55,7 +56,7 @@ public class TestXSLFExamples { @Test public void LinkVideoToPptx() throws IOException, URISyntaxException { String videoFileName = "file_example_MP4_640_3MG.mp4"; - File previewJpg = new File("test-data/document/abstract1.jpg"); + File previewJpg = POIDataSamples.getDocumentInstance().getFile("abstract1.jpg"); XMLSlideShow pptx = new XMLSlideShow();