Browse Source

Merge "ValidRefNameTest#testNormalizeBranchName: Fix string/ref equality check"

stable-5.2
David Pursehouse 6 years ago committed by Gerrit Code Review @ Eclipse.org
parent
commit
fbbb0b1e19
  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