Avoid using old legacy-store API in the test suite (#13077)
This commit is contained in:
parent
b80731decf
commit
b8d5e01cf3
1 changed files with 4 additions and 4 deletions
|
@ -207,8 +207,8 @@ public class DeviceActivityTest extends BaseAccountPageTest {
|
||||||
RealmModel realm = session.realms().getRealmByName(TEST);
|
RealmModel realm = session.realms().getRealmByName(TEST);
|
||||||
UserSessionModel userSession = session.sessions().getUserSession(realm, sessionId);
|
UserSessionModel userSession = session.sessions().getUserSession(realm, sessionId);
|
||||||
|
|
||||||
ClientModel client2 = session.clientLocalStorage().getClientByClientId(TEST_CLIENT2_ID, realm);
|
ClientModel client2 = session.clients().getClientByClientId(realm, TEST_CLIENT2_ID);
|
||||||
ClientModel client3 = session.clientLocalStorage().getClientByClientId(TEST_CLIENT3_ID, realm);
|
ClientModel client3 = session.clients().getClientByClientId(realm, TEST_CLIENT3_ID);
|
||||||
|
|
||||||
session.sessions().createClientSession(realm, client2, userSession);
|
session.sessions().createClientSession(realm, client2, userSession);
|
||||||
session.sessions().createClientSession(realm, client3, userSession);
|
session.sessions().createClientSession(realm, client3, userSession);
|
||||||
|
@ -293,8 +293,8 @@ public class DeviceActivityTest extends BaseAccountPageTest {
|
||||||
String sessionId = "abcdefg";
|
String sessionId = "abcdefg";
|
||||||
testingClient.server().run(session -> {
|
testingClient.server().run(session -> {
|
||||||
RealmModel realm = session.realms().getRealmByName(TEST);
|
RealmModel realm = session.realms().getRealmByName(TEST);
|
||||||
ClientModel client = session.clientLocalStorage().getClientByClientId(TEST_CLIENT_ID, realm);
|
ClientModel client = session.clients().getClientByClientId(realm, TEST_CLIENT_ID);
|
||||||
UserModel user = session.users().getUserByUsername("test", realm); // cannot use testUser.getUsername() because it throws NotSerializableException for no apparent reason (or maybe I'm just stupid :D)
|
UserModel user = session.users().getUserByUsername(realm, "test"); // cannot use testUser.getUsername() because it throws NotSerializableException for no apparent reason (or maybe I'm just stupid :D)
|
||||||
|
|
||||||
UserSessionModel userSession = session.sessions().createUserSession(sessionId, realm, user, "test", ip, "form", false, null, null, null);
|
UserSessionModel userSession = session.sessions().createUserSession(sessionId, realm, user, "test", ip, "form", false, null, null, null);
|
||||||
session.sessions().createClientSession(realm, client, userSession);
|
session.sessions().createClientSession(realm, client, userSession);
|
||||||
|
|
Loading…
Reference in a new issue