Commit unit test change too
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@980417 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
443dd75e04
commit
57f51af933
@ -21,6 +21,7 @@ import junit.framework.TestCase;
|
|||||||
import org.apache.poi.POIDataSamples;
|
import org.apache.poi.POIDataSamples;
|
||||||
import org.apache.poi.openxml4j.opc.OPCPackage;
|
import org.apache.poi.openxml4j.opc.OPCPackage;
|
||||||
import org.apache.poi.openxml4j.opc.PackagePart;
|
import org.apache.poi.openxml4j.opc.PackagePart;
|
||||||
|
import org.apache.poi.xslf.usermodel.XSLFRelation;
|
||||||
import org.openxmlformats.schemas.presentationml.x2006.main.CTSlideIdListEntry;
|
import org.openxmlformats.schemas.presentationml.x2006.main.CTSlideIdListEntry;
|
||||||
import org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry;
|
import org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry;
|
||||||
|
|
||||||
@ -35,7 +36,7 @@ public class TestXSLFSlideShow extends TestCase {
|
|||||||
public void testContainsMainContentType() throws Exception {
|
public void testContainsMainContentType() throws Exception {
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
for(PackagePart part : pack.getParts()) {
|
for(PackagePart part : pack.getParts()) {
|
||||||
if(part.getContentType().equals(XSLFSlideShow.MAIN_CONTENT_TYPE)) {
|
if(part.getContentType().equals(XSLFRelation.MAIN.getContentType())) {
|
||||||
found = true;
|
found = true;
|
||||||
}
|
}
|
||||||
//System.out.println(part);
|
//System.out.println(part);
|
||||||
|
Loading…
Reference in New Issue
Block a user