X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=tests%2Forg%2Fcacert%2Fgigi%2Fpages%2Faccount%2FTestMailManagement.java;h=56ae01a0640d72fba4a76f314c492cfdb5f5a577;hp=09bd98cee5c838976468bfd508531d1cfa037bcb;hb=785fe6cd9e7c9116b801aafc443b4f090cce870c;hpb=0356e9e734f82c91bd46709726098667fd01b2e8 diff --git a/tests/org/cacert/gigi/pages/account/TestMailManagement.java b/tests/org/cacert/gigi/pages/account/TestMailManagement.java index 09bd98ce..56ae01a0 100644 --- a/tests/org/cacert/gigi/pages/account/TestMailManagement.java +++ b/tests/org/cacert/gigi/pages/account/TestMailManagement.java @@ -6,6 +6,7 @@ import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.MalformedURLException; import java.net.URLEncoder; +import java.util.Locale; import org.cacert.gigi.EmailAddress; import org.cacert.gigi.GigiApiException; @@ -77,7 +78,7 @@ public class TestMailManagement extends ManagedTest { @Test public void testMailSetDefaultWebUnverified() throws MalformedURLException, UnsupportedEncodingException, IOException, InterruptedException, GigiApiException { EmailAddress adrr = new EmailAddress(createUniqueName() + "test@test.tld", u); - adrr.insert(Language.getInstance("en")); + adrr.insert(Language.getInstance(Locale.ENGLISH)); assertNotNull(executeBasicWebInteraction(cookie, path, "makedefault&emailid=" + adrr.getId())); assertNotEquals(User.getById(u.getId()).getEmail(), adrr.getAddress()); getMailReciever().clearMails();