Use global constant, this and the previous checkin fixes pull request 17 on github

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691822 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2015-07-19 12:15:17 +00:00
parent 0387edd759
commit 7244be0566
1 changed files with 2 additions and 4 deletions

View File

@ -27,6 +27,7 @@ import org.apache.poi.openxml4j.exceptions.OpenXML4JException;
import org.apache.poi.openxml4j.opc.OPCPackage;
import org.apache.poi.openxml4j.opc.PackageAccess;
import org.apache.poi.openxml4j.opc.PackagePart;
import org.apache.poi.openxml4j.opc.PackageRelationshipTypes;
import org.apache.poi.util.PackageHelper;
import org.junit.Test;
@ -59,11 +60,8 @@ public class XDGFFileHandler extends AbstractFileHandler {
// TODO: Get rid of this when full visio ooxml support is added
private final static class TestXDGFXMLDocument extends POIXMLDocument {
public static String CORE_DOCUMENT = "http://schemas.microsoft.com/visio/2010/relationships/document";
public TestXDGFXMLDocument(OPCPackage pkg) {
super(pkg, CORE_DOCUMENT);
super(pkg, PackageRelationshipTypes.VISIO_CORE_DOCUMENT);
}
public TestXDGFXMLDocument(InputStream is) throws IOException {