From ba33ef232e3c15d696ce2d381a2411e941b1363c Mon Sep 17 00:00:00 2001 From: Koji Arai Date: Thu, 9 May 2013 22:10:37 +0900 Subject: [PATCH] Wrap expected long strings --- .../com/fsck/k9/helper/HtmlConverterTest.java | 56 ++++++++++++++++++- 1 file changed, 53 insertions(+), 3 deletions(-) diff --git a/tests/src/com/fsck/k9/helper/HtmlConverterTest.java b/tests/src/com/fsck/k9/helper/HtmlConverterTest.java index 1b24da791..f18844480 100644 --- a/tests/src/com/fsck/k9/helper/HtmlConverterTest.java +++ b/tests/src/com/fsck/k9/helper/HtmlConverterTest.java @@ -25,7 +25,26 @@ public class HtmlConverterTest extends TestCase { ">> Guess!"; String result = HtmlConverter.textToHtml(message); writeToFile(result); - assertEquals("
Panama!

Bob Barker <bob@aol.com> wrote:
a canal

Dorothy Jo Gideon <dorothy@aol.com> espoused:
A man, a plan...
Too easy!

Nice job :)
Guess!
", result); + assertEquals("
"
+            + "Panama!
" + + "
" + + "Bob Barker <bob@aol.com> wrote:
" + + "
" + + "a canal
" + + "
" + + "Dorothy Jo Gideon <dorothy@aol.com> espoused:
" + + "
" + + "A man, a plan...
" + + "
" + + "Too easy!
" + + "
" + + "Nice job :)
" + + "
" + + "
" + + "Guess!" + + "
" + + "
" + + "
", result); } public void testTextQuoteToHtmlBlockquoteIndented() { @@ -39,7 +58,18 @@ public class HtmlConverterTest extends TestCase { "> :)"; String result = HtmlConverter.textToHtml(message); writeToFile(result); - assertEquals("
*facepalm*

Bob Barker <bob@aol.com> wrote:
A wise man once said...

LOL F1RST!!!!!

:)
", result); + assertEquals("
"
+                + "*facepalm*
" + + "
" + + "Bob Barker <bob@aol.com> wrote:
" + + "
" + + "A wise man once said...
" + + "
" + + "LOL F1RST!!!!!
" + + "
" + + ":)" + + "
", result); + } public void testQuoteDepthColor() { @@ -62,7 +92,27 @@ public class HtmlConverterTest extends TestCase { ">>>>>> six"; String result = HtmlConverter.textToHtml(message); writeToFile(result); - assertEquals("
zero
one
two
three
four
five
six
", result); + assertEquals("
"
+                + "zero
" + + "
" + + "one
" + + "
" + + "two
" + + "
" + + "three
" + + "
" + + "four
" + + "
" + + "five
" + + "
" + + "six" + + "
" + + "
" + + "
" + + "
" + + "
" + + "
" + + "
", result); } private void writeToFile(final String content) {