Author: nick
Date: Wed May 29 22:23:51 2013
New Revision: 1487657

URL: http://svn.apache.org/r1487657
Log:
Stub out the unit tests needed for bug #55026, and add the sample file from that

Added:
    poi/trunk/test-data/openxml4j/ContentTypeHasParameters.ooxml   (with props)
Modified:
    
poi/trunk/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestContentType.java

Modified: 
poi/trunk/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestContentType.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestContentType.java?rev=1487657&r1=1487656&r2=1487657&view=diff
==============================================================================
--- 
poi/trunk/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestContentType.java 
(original)
+++ 
poi/trunk/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestContentType.java 
Wed May 29 22:23:51 2013
@@ -79,6 +79,17 @@ public final class TestContentType exten
                }
        }
 
+   /**
+    * Parameters are allowed, provides that they meet the
+    *  criteria of rule [01.2]
+    * Invalid parameters are verified as incorrect in 
+    *  {@link #testContentTypeParameterFailure()}
+    */
+   public void testContentTypeParam() {
+      // TODO Review [01.2], then add tests for valid ones
+      // TODO See bug #55026
+   }
+   
        /**
         * Check rule [O1.2]: Format designers might restrict the usage of
         * parameters for content types.
@@ -116,4 +127,12 @@ public final class TestContentType exten
                                        + "' !");
                }
        }
+       
+       /**
+        * Check that we can open a file where there are valid
+        *  parameters on a content type
+        */
+       public void testFileWithContentTypeParams() {
+          // TODO Implement with ContentTypeHasParameters.ooxml
+       }
 }

Added: poi/trunk/test-data/openxml4j/ContentTypeHasParameters.ooxml
URL: 
http://svn.apache.org/viewvc/poi/trunk/test-data/openxml4j/ContentTypeHasParameters.ooxml?rev=1487657&view=auto
==============================================================================
Binary file - no diff available.

Propchange: poi/trunk/test-data/openxml4j/ContentTypeHasParameters.ooxml
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to