mirror of
https://github.com/apache/commons-collections.git
synced 2025-03-02 23:09:29 +00:00
Better unit test assertion.
This commit is contained in:
parent
0352f34efe
commit
f8115aa301
@ -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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user