Do not set color before profile name is known.

This commit is contained in:
Alan Evans
2020-09-23 16:54:38 -04:00
committed by Greyson Parrelli
parent 74e94f3a97
commit a05f74d302
3 changed files with 15 additions and 1 deletions
@@ -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