From: Matthias Sohn Date: Sat, 9 Jun 2018 00:01:59 +0000 (+0200) Subject: RawTextTest#testBinary: use array comparison to compare arrays X-Git-Tag: v5.0.0.201806131550-r~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F87%2F124287%2F2;p=jgit.git RawTextTest#testBinary: use array comparison to compare arrays Change-Id: Iac1feadf24858a0bdf0cb224f16b34e9498fe3bb Signed-off-by: Matthias Sohn --- diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextTest.java index 8cf3eedfdd..58a8b2d468 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextTest.java @@ -45,6 +45,7 @@ package org.eclipse.jgit.diff; import static org.eclipse.jgit.lib.Constants.CHARSET; +import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNull; @@ -69,7 +70,7 @@ public class RawTextTest { String input = "foo-a\nf\0o-b\n"; byte[] data = Constants.encodeASCII(input); final RawText a = new RawText(data); - assertEquals(a.content, data); + assertArrayEquals(a.content, data); assertEquals(a.size(), 1); assertEquals(a.getString(0, 1, false), input); }