diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2016-10-19 14:03:27 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2016-10-19 15:09:37 +0900 |
commit | a5dde985a0e66dfde57258bf2f4734c75194ae83 (patch) | |
tree | 8a14c3428cce97b190b85f7debb07689ebe46086 /org.eclipse.jgit.test | |
parent | 9a7d28019a2f31855b538aee785bbc92719f3625 (diff) | |
download | jgit-a5dde985a0e66dfde57258bf2f4734c75194ae83.tar.gz jgit-a5dde985a0e66dfde57258bf2f4734c75194ae83.zip |
DiffCommandTest: Don't call toString on String instances
Change-Id: Ib308b3498593d595b3d8741a9b2d241bbc7441c3
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/api/DiffCommandTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/DiffCommandTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/DiffCommandTest.java index 4f5b50dcc1..43c3a8cf92 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/DiffCommandTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/DiffCommandTest.java @@ -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); } } |