diff --git a/OpenKeychain/src/test/java/org/sufficientlysecure/keychain/pgp/SplitUserIdTest.java b/OpenKeychain/src/test/java/org/sufficientlysecure/keychain/pgp/SplitUserIdTest.java index 015efde43..335be9825 100644 --- a/OpenKeychain/src/test/java/org/sufficientlysecure/keychain/pgp/SplitUserIdTest.java +++ b/OpenKeychain/src/test/java/org/sufficientlysecure/keychain/pgp/SplitUserIdTest.java @@ -131,10 +131,10 @@ public class SplitUserIdTest { } @Test - public void splitUserIdWithInvalidEmailShouldReturnEmail() { - OpenPgpUtils.UserId info = KeyRing.splitUserId("Name@LooksLike.Email "); - Assert.assertEquals("Name@LooksLike.Email", info.name); - Assert.assertEquals("Name@LooksLikeEmail", info.email); + public void splitUserIdWithEmailWithoutTldShouldReturnNameAndEmail() { + OpenPgpUtils.UserId info = KeyRing.splitUserId("Max Mustermann "); + Assert.assertEquals("Max Mustermann", info.name); + Assert.assertEquals("max@localhost", info.email); Assert.assertNull(info.comment); }