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…
Reference in New Issue