]> source.dussan.org Git - poi.git/commitdiff
Stub out the unit tests needed for bug #55026, and add the sample file from that
authorNick Burch <nick@apache.org>
Wed, 29 May 2013 22:23:51 +0000 (22:23 +0000)
committerNick Burch <nick@apache.org>
Wed, 29 May 2013 22:23:51 +0000 (22:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1487657 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestContentType.java
test-data/openxml4j/ContentTypeHasParameters.ooxml [new file with mode: 0644]

index ab2d6aa7162289e4e53473d497d6bf372a52ade0..a74d3822006d6fbf870db2661a8ede1091d222b4 100644 (file)
@@ -79,6 +79,17 @@ public final class TestContentType extends TestCase {
                }
        }
 
+   /**
+    * 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 extends TestCase {
                                        + "' !");
                }
        }
+       
+       /**
+        * Check that we can open a file where there are valid
+        *  parameters on a content type
+        */
+       public void testFileWithContentTypeParams() {
+          // TODO Implement with ContentTypeHasParameters.ooxml
+       }
 }
diff --git a/test-data/openxml4j/ContentTypeHasParameters.ooxml b/test-data/openxml4j/ContentTypeHasParameters.ooxml
new file mode 100644 (file)
index 0000000..b4410b0
Binary files /dev/null and b/test-data/openxml4j/ContentTypeHasParameters.ooxml differ