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:
Nick Burch 2008-03-09 15:05:22 +00:00
parent 0a06d325fa
commit ec57987645
1 changed files with 2 additions and 2 deletions

View File

@ -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;
} }