KEYCLOAK-1372 - tests improved

This commit is contained in:
Vlastimil Elias 2015-06-02 15:41:50 +02:00
parent b86d091ad1
commit 1c3d165e5d
2 changed files with 4 additions and 0 deletions

View file

@ -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());
}

View file

@ -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());