Fix failing test

This commit is contained in:
mposolda 2016-03-09 16:49:01 +01:00 committed by Bill Burke
parent 1939f25a71
commit e3f24f58df

View file

@ -17,10 +17,8 @@
package org.keycloak.testsuite.model;
import org.jboss.logging.Logger;
import org.junit.Assert;
import org.junit.Test;
import org.keycloak.Config;
import org.keycloak.models.ClientModel;
import org.keycloak.models.KeycloakSession;
import org.keycloak.models.RealmModel;
@ -42,8 +40,6 @@ import java.util.Map;
*/
public class UserModelTest extends AbstractModelTest {
private static final Logger logger = Logger.getLogger(UserModelTest.class);
@Test
public void persistUser() {
RealmModel realm = realmManager.createRealm("original");
@ -217,10 +213,8 @@ public class UserModelTest extends AbstractModelTest {
@Test
public void testSearchByString() {
logger.infof("Started testSearchByString");
RealmModel realm = realmManager.getRealmByName("test");
RealmModel realm = realmManager.createRealm("original");
UserModel user1 = session.users().addUser(realm, "user1");
logger.infof("Added user1");
commit();