Browse Source

ValidRefNameTest#testNormalizeBranchName: Fix string/ref equality check

Change-Id: Ibffb0dcaab6ec033b1b69aa27ccb7fdaa32fa925
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
stable-5.2
David Pursehouse 6 years ago
parent
commit
b0f2826dfd
  1. 4
      org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ValidRefNameTest.java

4
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ValidRefNameTest.java

@ -270,8 +270,8 @@ public class ValidRefNameTest {
@Test
public void testNormalizeBranchName() {
assertEquals(true, Repository.normalizeBranchName(null) == "");
assertEquals(true, Repository.normalizeBranchName("").equals(""));
assertEquals("", Repository.normalizeBranchName(null));
assertEquals("", Repository.normalizeBranchName(""));
assertNormalized("Bug 12345::::Hello World", "Bug_12345-Hello_World");
assertNormalized("Bug 12345 :::: Hello World", "Bug_12345_Hello_World");
assertNormalized("Bug 12345 :::: Hello::: World",

Loading…
Cancel
Save