]> source.dussan.org Git - jgit.git/commitdiff
DiffCommandTest: Don't call toString on String instances 90/83490/2
authorDavid Pursehouse <david.pursehouse@gmail.com>
Wed, 19 Oct 2016 05:03:27 +0000 (14:03 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Wed, 19 Oct 2016 06:09:37 +0000 (15:09 +0900)
Change-Id: Ib308b3498593d595b3d8741a9b2d241bbc7441c3
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/DiffCommandTest.java

index 4f5b50dcc1c4ed43135eb69038744291ceee6018..43c3a8cf92b4efc7d5b4531e9afd9e93d9bd6c59 100644 (file)
@@ -95,7 +95,7 @@ public class DiffCommandTest extends RepositoryTestCase {
                                        + "\\ No newline at end of file\n"
                                        + "+folder change\n"
                                        + "\\ No newline at end of file\n";
-                       assertEquals(expected.toString(), actual);
+                       assertEquals(expected, actual);
                }
        }
 
@@ -130,7 +130,7 @@ public class DiffCommandTest extends RepositoryTestCase {
                                        + "@@ -0,0 +1 @@\n"
                                        + "+folder\n"
                                        + "\\ No newline at end of file\n";
-                       assertEquals(expected.toString(), actual);
+                       assertEquals(expected, actual);
                }
        }
 
@@ -179,7 +179,7 @@ public class DiffCommandTest extends RepositoryTestCase {
                                        + "\\ No newline at end of file\n"
                                        + "+folder change\n"
                                        + "\\ No newline at end of file\n";
-                       assertEquals(expected.toString(), actual);
+                       assertEquals(expected, actual);
                }
        }
 
@@ -201,7 +201,7 @@ public class DiffCommandTest extends RepositoryTestCase {
                                        + "+++ new/test.txt\n" + "@@ -1 +1 @@\n" + "-test\n"
                                        + "\\ No newline at end of file\n" + "+test change\n"
                                        + "\\ No newline at end of file\n";
-                       assertEquals(expected.toString(), actual);
+                       assertEquals(expected, actual);
                }
        }
 
@@ -223,7 +223,7 @@ public class DiffCommandTest extends RepositoryTestCase {
                                        + "index f55b5c9..c5ec8fd 100644\n" + "--- a/test.txt\n"
                                        + "+++ b/test.txt\n" + "@@ -4,3 +4,3 @@\n" + " 3\n" + "-4\n"
                                        + "+4a\n" + " 5\n";
-                       assertEquals(expected.toString(), actual);
+                       assertEquals(expected, actual);
                }
        }