This is an automated email from the ASF dual-hosted git repository.
reta pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cxf-xjc-utils.git
The following commit(s) were added to refs/heads/main by this push:
new 956ba7a Incorporating tests from
https://github.com/apache/cxf-xjc-utils/pull/6
956ba7a is described below
commit 956ba7ad343b3433a0a90c53b472712a35c61968
Author: Andriy Redko <[email protected]>
AuthorDate: Fri Apr 3 18:58:43 2026 -0400
Incorporating tests from https://github.com/apache/cxf-xjc-utils/pull/6
---
.../test/java/org/apache/cxf/xjc/javadoc/JavadocPluginTest.java | 8 ++++++++
javadoc/src/test/resources/complexTypeWithDocumentedAttribute.xsd | 8 ++++++++
.../src/test/resources/complexTypeWithDocumentedProperties.xsd | 8 ++++++++
3 files changed, 24 insertions(+)
diff --git
a/javadoc/src/test/java/org/apache/cxf/xjc/javadoc/JavadocPluginTest.java
b/javadoc/src/test/java/org/apache/cxf/xjc/javadoc/JavadocPluginTest.java
index 7dac438..f18023b 100644
--- a/javadoc/src/test/java/org/apache/cxf/xjc/javadoc/JavadocPluginTest.java
+++ b/javadoc/src/test/java/org/apache/cxf/xjc/javadoc/JavadocPluginTest.java
@@ -97,6 +97,10 @@ public class JavadocPluginTest extends Assert {
Javadoc setterJavadoc = getJavadocOfMethod(compilationUnit,
"setDocumentedElement");
assertThat(setterJavadoc, containsTag("@see",
"#getDocumentedElement()"));
+
+ Javadoc fieldMultilineJavadoc = getJavadocOfField(compilationUnit,
"multilineDocumentedElement");
+ assertThat(fieldMultilineJavadoc, javadocContains("Some multiline
documentation of"));
+ assertThat(fieldMultilineJavadoc, javadocContains("element"));
}
@Test
@@ -154,6 +158,10 @@ public class JavadocPluginTest extends Assert {
Javadoc getterJavadoc = getJavadocOfMethod(compilationUnit,
"getDocumentedAttribute");
assertThat(getterJavadoc, javadocContains("Documentation of
attribute"));
+
+ Javadoc fieldMultilineJavadoc = getJavadocOfField(compilationUnit,
"multilineDocumentedAttribute");
+ assertThat(fieldMultilineJavadoc, javadocContains("Multiline
documentation of"));
+ assertThat(fieldMultilineJavadoc, javadocContains("attribute"));
}
@Test
diff --git a/javadoc/src/test/resources/complexTypeWithDocumentedAttribute.xsd
b/javadoc/src/test/resources/complexTypeWithDocumentedAttribute.xsd
index 23cff9b..f0ebaeb 100644
--- a/javadoc/src/test/resources/complexTypeWithDocumentedAttribute.xsd
+++ b/javadoc/src/test/resources/complexTypeWithDocumentedAttribute.xsd
@@ -28,5 +28,13 @@
<documentation>Documentation of
attribute</documentation>
</annotation>
</attribute>
+ <attribute name="multilineDocumentedAttribute" type="string">
+ <annotation>
+ <documentation>
+ Multiline documentation of
+ attribute
+ </documentation>
+ </annotation>
+ </attribute>
</complexType>
</schema>
\ No newline at end of file
diff --git a/javadoc/src/test/resources/complexTypeWithDocumentedProperties.xsd
b/javadoc/src/test/resources/complexTypeWithDocumentedProperties.xsd
index 47829b7..a30928c 100644
--- a/javadoc/src/test/resources/complexTypeWithDocumentedProperties.xsd
+++ b/javadoc/src/test/resources/complexTypeWithDocumentedProperties.xsd
@@ -31,6 +31,14 @@
<element name="elementWithoutDocumentation" type="string">
<annotation></annotation>
</element>
+ <element name="multilineDocumentedElement" type="string">
+ <annotation>
+ <documentation>
+ Some multiline documentation of
+ element
+ </documentation>
+ </annotation>
+ </element>
</sequence>
</complexType>
</schema>
\ No newline at end of file