mirror of https://github.com/apache/poi.git
Fix a few ooxml unit tests
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@635255 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0a06d325fa
commit
ec57987645
|
@ -107,13 +107,13 @@ public abstract class POIXMLDocument {
|
||||||
/**
|
/**
|
||||||
* Fetches the (single) PackagePart which is defined as
|
* Fetches the (single) PackagePart which is defined as
|
||||||
* the supplied relation content type of the base
|
* the supplied relation content type of the base
|
||||||
* container, or null if none found.
|
* package/container, or null if none found.
|
||||||
* @param relationType The relation content type to search for
|
* @param relationType The relation content type to search for
|
||||||
* @throws IllegalArgumentException If we find more than one part of that type
|
* @throws IllegalArgumentException If we find more than one part of that type
|
||||||
*/
|
*/
|
||||||
protected PackagePart getSinglePartByRelationType(String relationType) throws IllegalArgumentException, OpenXML4JException {
|
protected PackagePart getSinglePartByRelationType(String relationType) throws IllegalArgumentException, OpenXML4JException {
|
||||||
PackageRelationshipCollection rels =
|
PackageRelationshipCollection rels =
|
||||||
getCorePart().getRelationshipsByType(relationType);
|
pkg.getRelationshipsByType(relationType);
|
||||||
if(rels.size() == 0) {
|
if(rels.size() == 0) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue