]> source.dussan.org Git - jgit.git/commitdiff
ValidRefNameTest#testNormalizeBranchName: Fix string/ref equality check 77/130277/3
authorDavid Pursehouse <david.pursehouse@gmail.com>
Tue, 2 Oct 2018 04:17:51 +0000 (13:17 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Wed, 10 Oct 2018 00:53:04 +0000 (09:53 +0900)
Change-Id: Ibffb0dcaab6ec033b1b69aa27ccb7fdaa32fa925
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ValidRefNameTest.java

index 87e901fcfef768f07c80572d486c80a1f47630e6..df5079ae16b129458f56ebe4b7bce18605def471 100644 (file)
@@ -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",