From: Nick Burch Date: Wed, 29 May 2013 22:23:51 +0000 (+0000) Subject: Stub out the unit tests needed for bug #55026, and add the sample file from that X-Git-Tag: 3.10-beta1~42 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ea27681eab5eb2da353f5909120626eb983705c4;p=poi.git Stub out the unit tests needed for bug #55026, and add the sample file from that git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1487657 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestContentType.java b/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestContentType.java index ab2d6aa716..a74d382200 100644 --- a/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestContentType.java +++ b/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestContentType.java @@ -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 index 0000000000..b4410b009d Binary files /dev/null and b/test-data/openxml4j/ContentTypeHasParameters.ooxml differ