From 982f78fcc9dcc9a5fecc2feab3b19381c2f77c49 Mon Sep 17 00:00:00 2001 From: cketti Date: Wed, 30 May 2012 16:02:00 +0200 Subject: [PATCH] Explicitly set the language to be used in unit test --- tests/src/com/fsck/k9/mail/internet/ViewablesTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/src/com/fsck/k9/mail/internet/ViewablesTest.java b/tests/src/com/fsck/k9/mail/internet/ViewablesTest.java index c6af4639b..ed7a2c90e 100644 --- a/tests/src/com/fsck/k9/mail/internet/ViewablesTest.java +++ b/tests/src/com/fsck/k9/mail/internet/ViewablesTest.java @@ -4,6 +4,8 @@ import java.util.Date; import java.util.Locale; import java.util.TimeZone; import android.test.AndroidTestCase; + +import com.fsck.k9.activity.K9Activity; import com.fsck.k9.mail.Address; import com.fsck.k9.mail.MessagingException; import com.fsck.k9.mail.Message.RecipientType; @@ -107,6 +109,7 @@ public class ViewablesTest extends AndroidTestCase { } public void testTextPlusRfc822Message() throws MessagingException { + K9Activity.setLanguage(getContext(), "en"); Locale.setDefault(Locale.US); TimeZone.setDefault(TimeZone.getTimeZone("GMT"));