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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git


The following commit(s) were added to refs/heads/master by this push:
     new f8115aa  Better unit test assertion.
f8115aa is described below

commit f8115aa3016ccbb5fb341976009f5be9905fa8e8
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Sep 28 12:32:27 2021 -0400

    Better unit test assertion.
---
 .../apache/commons/collections4/properties/EmptyPropertiesTest.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/collections4/properties/EmptyPropertiesTest.java
 
b/src/test/java/org/apache/commons/collections4/properties/EmptyPropertiesTest.java
index d5723ad..c70173c 100644
--- 
a/src/test/java/org/apache/commons/collections4/properties/EmptyPropertiesTest.java
+++ 
b/src/test/java/org/apache/commons/collections4/properties/EmptyPropertiesTest.java
@@ -266,12 +266,12 @@ public class EmptyPropertiesTest {
                 try (PrintStream out = new PrintStream(expected)) {
                     PropertiesFactory.INSTANCE.createProperties().save(out, 
comments);
                 }
-                assertArrayEquals(expected.toByteArray(), 
actual.toByteArray());
+                assertArrayEquals(expected.toByteArray(), 
actual.toByteArray(), () -> new String(expected.toByteArray()));
                 expected.reset();
                 try (PrintStream out = new PrintStream(expected)) {
                     new Properties().save(out, comments);
                 }
-                assertArrayEquals(expected.toByteArray(), 
actual.toByteArray());
+                assertArrayEquals(expected.toByteArray(), 
actual.toByteArray(), () -> new String(expected.toByteArray()));
             }
         }
     }

Reply via email to