mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-25 11:20:47 +01:00
Do not set color before profile name is known.
This commit is contained in:
committed by
Greyson Parrelli
parent
74e94f3a97
commit
a05f74d302
@@ -20,6 +20,7 @@ public final class ProfileNameTest {
|
||||
assertFalse("ProfileName should not be CJKV", profileName.isProfileNameCJKV());
|
||||
assertEquals("ProfileName should have empty given name", "", profileName.getGivenName());
|
||||
assertEquals("ProfileName should have empty family name", "", profileName.getFamilyName());
|
||||
assertTrue(profileName.isEmpty());
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -31,6 +32,15 @@ public final class ProfileNameTest {
|
||||
assertSame(ProfileName.EMPTY, profileName);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void givenProfileNameWithNulls_thenIExpectExactlyEmpty() {
|
||||
// GIVEN
|
||||
ProfileName profileName = ProfileName.fromParts(null, null);
|
||||
|
||||
// THEN
|
||||
assertSame(ProfileName.EMPTY, profileName);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void givenProfileNameWithGivenNameOnly_whenIFromDataString_thenIExpectValidProfileName() {
|
||||
// GIVEN
|
||||
|
||||
Reference in New Issue
Block a user