Skip to content

Commit 3fa0c04

Browse files
javadoc: expectedXml parameter is XML not JSON
Fix javadoc for expectedXml parameter. The xml(..) assert expects XML content not JSON.
1 parent d39fe9a commit 3fa0c04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-test/src/main/java/org/springframework/test/web/reactive/server/WebTestClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ default BodyContentSpec json(String expectedJson) {
10601060
* <p>Use of this method requires the
10611061
* <a href="https://github.com/xmlunit/xmlunit">XMLUnit</a> library on
10621062
* the classpath.
1063-
* @param expectedXml the expected JSON content.
1063+
* @param expectedXml the expected XML content.
10641064
* @since 5.1
10651065
* @see org.springframework.test.util.XmlExpectationsHelper#assertXmlEqual(String, String)
10661066
*/

0 commit comments

Comments
 (0)