]> source.dussan.org Git - jgit.git/commitdiff
RawTextTest#testBinary: use array comparison to compare arrays 87/124287/2
authorMatthias Sohn <matthias.sohn@sap.com>
Sat, 9 Jun 2018 00:01:59 +0000 (02:01 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Sat, 9 Jun 2018 12:42:55 +0000 (14:42 +0200)
Change-Id: Iac1feadf24858a0bdf0cb224f16b34e9498fe3bb
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextTest.java

index 8cf3eedfdd1dc0e6061f0af9cb42da46ed7d0576..58a8b2d468d05805b483fe9318f718d124eb7d7c 100644 (file)
@@ -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);
        }