mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-21 11:31:38 +01:00
merge with branch 1.x
This commit is contained in:
@@ -58,6 +58,17 @@ public class I18nMessagesTest
|
||||
@Test
|
||||
public void testI18n()
|
||||
{
|
||||
/*
|
||||
lookup-order for this test:
|
||||
- TM_en (es specified, but not ava)
|
||||
- TM_<execution-locale>
|
||||
- TM
|
||||
|
||||
This means that, if there is no default locale specified, this test accidentally passes on non-german machines, an fails on german machines, since the execution locale is de_DE, which is checked even before the fallback locale is considered.
|
||||
*/
|
||||
|
||||
Locale.setDefault(Locale.ENGLISH);
|
||||
|
||||
TestMessages msg = I18nMessages.get(TestMessages.class);
|
||||
|
||||
assertEquals("Normal Key", msg.normalKey);
|
||||
|
||||
@@ -78,6 +78,12 @@ public class ValidationUtilTest
|
||||
assertTrue(ValidationUtil.isMailAddressValid("sdorra@ostfalia.de"));
|
||||
assertTrue(ValidationUtil.isMailAddressValid("s.sdorra@hbk-bs.de"));
|
||||
assertTrue(ValidationUtil.isMailAddressValid("s.sdorra@gmail.com"));
|
||||
assertTrue(ValidationUtil.isMailAddressValid("s.sdorra@t.co"));
|
||||
assertTrue(ValidationUtil.isMailAddressValid("s.sdorra@ucla.college"));
|
||||
assertTrue(ValidationUtil.isMailAddressValid("s.sdorra@example.xn--p1ai"));
|
||||
|
||||
// issue 909
|
||||
assertTrue(ValidationUtil.isMailAddressValid("s.sdorra@scm.solutions"));
|
||||
|
||||
// false
|
||||
assertFalse(ValidationUtil.isMailAddressValid("ostfalia.de"));
|
||||
|
||||
Reference in New Issue
Block a user