예제 #1
0
 public static void assertUserImported(
     UserProvider userProvider,
     RealmModel realm,
     String username,
     String expectedFirstName,
     String expectedLastName,
     String expectedEmail,
     String expectedPostalCode) {
   UserModel user = userProvider.getUserByUsername(username, realm);
   Assert.assertNotNull(user);
   Assert.assertEquals(expectedFirstName, user.getFirstName());
   Assert.assertEquals(expectedLastName, user.getLastName());
   Assert.assertEquals(expectedEmail, user.getEmail());
   Assert.assertEquals(expectedPostalCode, user.getFirstAttribute("postal_code"));
 }
예제 #2
0
 @Override
 public void close() {
   if (delegate != null) delegate.close();
 }