This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-doxia.git

commit 7c2d4dedf0d1c23bb36a381f21b732ef67601e5e
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Tue Nov 3 22:49:40 2026 +0000

    Test that the XHTML5 sink writes the date as dcterms.date
---
 .../java/org/apache/maven/doxia/module/xhtml5/Xhtml5SinkTest.java     | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/doxia-modules/doxia-module-xhtml5/src/test/java/org/apache/maven/doxia/module/xhtml5/Xhtml5SinkTest.java
 
b/doxia-modules/doxia-module-xhtml5/src/test/java/org/apache/maven/doxia/module/xhtml5/Xhtml5SinkTest.java
index cda27a2e..edf4101b 100644
--- 
a/doxia-modules/doxia-module-xhtml5/src/test/java/org/apache/maven/doxia/module/xhtml5/Xhtml5SinkTest.java
+++ 
b/doxia-modules/doxia-module-xhtml5/src/test/java/org/apache/maven/doxia/module/xhtml5/Xhtml5SinkTest.java
@@ -329,6 +329,9 @@ public class Xhtml5SinkTest extends AbstractSinkTest {
             // note: this is really illegal, there should be no un-resolved 
entities emitted into text()
             sink.text("&#x123;&");
             sink.author_();
+            sink.date();
+            sink.text("2013-01-02");
+            sink.date_();
             SinkEventAttributeSet atts = new SinkEventAttributeSet(1);
             atts.addAttribute("href", "http://maven.apache.org/";);
             sink.unknown("base", new Object[] {HtmlMarkup.TAG_TYPE_SIMPLE}, 
atts);
@@ -339,6 +342,7 @@ public class Xhtml5SinkTest extends AbstractSinkTest {
 
         String expected =
                 "<head>\n<title>Title</title><!--A comment--><meta 
name=\"author\" content=\"&#x123;&amp;\" />"
+                        + "<meta name=\"dcterms.date\" content=\"2013-01-02\" 
/>"
                         + "<base href=\"http://maven.apache.org/\"; /></head>";
         String actual = writer.toString();
         assertTrue(actual.contains(expected), actual);

Reply via email to