poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r980417 - /poi/trunk/src/ooxml/testcases/org/apache/poi/xslf/TestXSLFSlideShow.java
Date Thu, 29 Jul 2010 12:02:04 GMT
Author: nick
Date: Thu Jul 29 12:02:03 2010
New Revision: 980417

URL: http://svn.apache.org/viewvc?rev=980417&view=rev
Log:
Commit unit test change too

Modified:
    poi/trunk/src/ooxml/testcases/org/apache/poi/xslf/TestXSLFSlideShow.java

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xslf/TestXSLFSlideShow.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xslf/TestXSLFSlideShow.java?rev=980417&r1=980416&r2=980417&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xslf/TestXSLFSlideShow.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xslf/TestXSLFSlideShow.java Thu Jul 29 12:02:03
2010
@@ -21,6 +21,7 @@ import junit.framework.TestCase;
 import org.apache.poi.POIDataSamples;
 import org.apache.poi.openxml4j.opc.OPCPackage;
 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.CTSlideMasterIdListEntry;
 
@@ -35,7 +36,7 @@ public class TestXSLFSlideShow extends T
 	public void testContainsMainContentType() throws Exception {
 		boolean found = false;
 		for(PackagePart part : pack.getParts()) {
-			if(part.getContentType().equals(XSLFSlideShow.MAIN_CONTENT_TYPE)) {
+			if(part.getContentType().equals(XSLFRelation.MAIN.getContentType())) {
 				found = true;
 			}
 			//System.out.println(part);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message