Browse Source

RawTextTest#testBinary: use array comparison to compare arrays

Change-Id: Iac1feadf24858a0bdf0cb224f16b34e9498fe3bb
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-5.0
Matthias Sohn 6 years ago
parent
commit
5f8b6ebc9f
  1. 3
      org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextTest.java

3
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);
}

Loading…
Cancel
Save