Skip to content

Commit e6dcb38

Browse files
committed
record #232/#235, credit @Boiarshinov and add since tags
1 parent b1156a8 commit e6dcb38

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

RELEASE_NOTES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
## XMLUnit for Java 2.8.3 - /not released, yet/
44

5+
* added a new `fullDescription` method to `Diff` that provides a
6+
string-representation of all differences - not just the first one
7+
like `toString` does.
8+
PR [#235](https://github.com/xmlunit/xmlunit/issues/235) fixing
9+
[#232](https://github.com/xmlunit/xmlunit/issues/232) by
10+
[@Boiarshinov](https://github.com/Boiarshinov)
11+
512
* made sure AssertJ's methods to override the assertion message like
613
`withFailMessage` are honored.
714
[#225](https://github.com/xmlunit/xmlunit/issues/225)

xmlunit-core/src/main/java/org/xmlunit/diff/Diff.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ public Diff(Source controlSource, Source testSource,
5353
* Returns a string representation of this diff
5454
* using internal {@link ComparisonFormatter} or
5555
* {@link DefaultComparisonFormatter} if formatter wasn't set.
56-
* Each comparison result separated by the end of the line.
56+
*
57+
* <p>Each comparison result separated by the end of the line.</p>
58+
*
5759
* @return a string representation of this diff
60+
* @since 2.8.3
5861
*/
5962
public String fullDescription() {
6063
return fullDescription(formatter);
@@ -63,8 +66,12 @@ public String fullDescription() {
6366
/**
6467
* Returns a string representation of this diff
6568
* using the given {@link ComparisonFormatter}
69+
*
70+
* <p>Each comparison result separated by the end of the line.</p>
71+
*
6672
* @param formatter the {@link ComparisonFormatter} to use
6773
* @return a string representation of this diff
74+
* @since 2.8.3
6875
*/
6976
public String fullDescription(ComparisonFormatter formatter) {
7077
if (!hasDifferences()) {

0 commit comments

Comments
 (0)