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 ab2d6aa71..a74d38220 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 000000000..b4410b009 Binary files /dev/null and b/test-data/openxml4j/ContentTypeHasParameters.ooxml differ