KEYCLOAK-1372 - tests improved
This commit is contained in:
parent
b86d091ad1
commit
1c3d165e5d
2 changed files with 4 additions and 0 deletions
|
@ -637,10 +637,12 @@ public abstract class AbstractIdentityProviderTest {
|
|||
String userLastName = "New last";
|
||||
|
||||
assertEquals(expectedEmail, federatedUser.getEmail());
|
||||
assertFalse(federatedUser.isEmailVerified());
|
||||
assertEquals(userFirstName, federatedUser.getFirstName());
|
||||
assertEquals(userLastName, federatedUser.getLastName());
|
||||
} else {
|
||||
assertEquals(expectedEmail, federatedUser.getEmail());
|
||||
assertFalse(federatedUser.isEmailVerified());
|
||||
assertEquals("Test", federatedUser.getFirstName());
|
||||
assertEquals("User", federatedUser.getLastName());
|
||||
}
|
||||
|
|
|
@ -57,8 +57,10 @@ public class SAMLKeyCloakServerBrokerWithSignatureTest extends AbstractIdentityP
|
|||
if (expectedEmail == null) {
|
||||
// Need to handle differences for various databases (like Oracle)
|
||||
assertTrue(federatedUser.getEmail() == null || federatedUser.getEmail().equals(""));
|
||||
assertFalse(federatedUser.isEmailVerified());
|
||||
} else {
|
||||
assertEquals(expectedEmail, federatedUser.getEmail());
|
||||
assertFalse(federatedUser.isEmailVerified());
|
||||
}
|
||||
assertNull(federatedUser.getFirstName());
|
||||
assertNull(federatedUser.getLastName());
|
||||
|
|
Loading…
Reference in a new issue