Worked around API7/API10 differences in unit test

GMT-dates are formatted without "+00:00" offset in API7 emulators.
This commit is contained in:
cketti 2012-06-09 00:39:15 +02:00
parent fb1bd9f913
commit 609cdf6bc5
1 changed files with 3 additions and 3 deletions

View File

@ -111,7 +111,7 @@ public class ViewablesTest extends AndroidTestCase {
public void testTextPlusRfc822Message() throws MessagingException {
K9Activity.setLanguage(getContext(), "en");
Locale.setDefault(Locale.US);
TimeZone.setDefault(TimeZone.getTimeZone("GMT"));
TimeZone.setDefault(TimeZone.getTimeZone("GMT+01:00"));
String bodyText = "Some text here";
String innerBodyText = "Hey there. I'm inside a message/rfc822 (inline) attachment.";
@ -152,7 +152,7 @@ public class ViewablesTest extends AndroidTestCase {
"\n\n" +
"From: from@example.com" + "\n" +
"To: to@example.com" + "\n" +
"Sent: Sat Mar 17 00:00:00 GMT+00:00 2012" + "\n" +
"Sent: Sat Mar 17 00:00:00 GMT+01:00 2012" + "\n" +
"Subject: Subject" + "\n" +
"\n" +
innerBodyText;
@ -173,7 +173,7 @@ public class ViewablesTest extends AndroidTestCase {
"<td>to@example.com</td>" +
"</tr><tr>" +
"<th style=\"text-align: left; vertical-align: top;\">Sent:</th>" +
"<td>Sat Mar 17 00:00:00 GMT+00:00 2012</td>" +
"<td>Sat Mar 17 00:00:00 GMT+01:00 2012</td>" +
"</tr><tr>" +
"<th style=\"text-align: left; vertical-align: top;\">Subject:</th>" +
"<td>Subject</td>" +